Use Referer / or Modify "Login" link rendered with "Login or Register to Join The Conversation" to include destination componen

Hi Guys

Your main menu bar login link that gets rendered is smart enough to know which page it is being called from.
Thus, it adds a ?destination=XXX bit on the link.
e.g. "http://www.ozbargain.com.au/user/login?destination=node%2F76330

Can you modify the "Login or Register to Join The Conversation" login link to do the same. It is damn annoying authenticating to post a comment, and then trying to hit back button etc to get back to the original page.

You could also trying using the "Referer" header that most browsers supply …

(Request-Line) GET /user/login HTTP/1.1
Host www.ozbargain.com.au
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Proxy-Connection keep-alive
Referer http://www.ozbargain.com.au/node/76345

thanks

Comments

  • Sure. Will get that fixed. Next roll out would be probably tomorrow morning…

  • Thanks for fixing it! Much better.

Login or Join to leave a comment