We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to stop force redirect after login via google connect | Forum

Topic location: Forum home » Support » General Questions
Ash
Ash Jul 13 '20
Hi All


What is the trick to make user come back on same page after login via google connect ? 


its critical especially when user visits a product and does a login, he is thrown in index page and the whole purpose of exploring product is lost


Thanks in Advance

Cheers!

Marcus
Marcus Jul 13 '20
shouldn't be hard but im not familiar with code. anyways id do it like that. add onclick event to button that will create cookie which will store current url then after login grab cookies url and redirect.

this actually makes winder why oxwall ain't tracking users on site. 
Ash
Ash Jul 13 '20

Quote from Marcus shouldn't be hard but im not familiar with code. anyways id do it like that. add onclick event to button that will create cookie which will store current url then after login grab cookies url and redirect.
this actually makes winder why oxwall ain't tracking users on site. 
You are right, user tracking is absent in oxwall and people use google analytics. 


So what you are saying is there needs to be 2-sets of coding needed right?
1)creation of cookie (if you can please help with this code, it will help many oxwallers)
2)Further if anyone can help tweaking the url redirecting plugin script ? here is the attached plugin.

---

Further below stuff also needs to be added to make google connect plugin perfect:


https://developers.oxwall.com/forum/topic/64253


--

if someone can ask the developer to do the updates, it will be a great help for all future users!


Thanks

Cheers! 

Attachments:
  glconnect_28_11_2014.zip (29Kb)
AppXprt
AppXprt Jul 14 '20
I would definitely try to find a way to do it without cookies...



The Forum post is edited by AppXprt Jul 14 '20
Marcus
Marcus Jul 15 '20
hi appexprt what are u suggesting store url in the session.