Jump to content

phpBB: redirect on login problem.


bpops

Recommended Posts

I posted this question over at phpbb.com ( http://www.phpbb.com/phpBB/viewtopic.php?t=448208 ) and haven't had any responses yet. I was hoping maybe someone here had a solution.

I'm having a bit of difficult with a redirect variable for logging into my phpbb forum. I have a dynamically generated "LOGIN" link on my site that changes the redirect variable depending on the page. The tricky part is that all my pages are dynamically generated using variables themselves. So a typical example would be:

http://www.b-pops.com/wow/spell.php?id=1240

Most of the time this isn't a problem, my Login link looks like:

http://www.b-pops.com/forums/login.php?redirect=../wow/spell.php?id=1240

But if I have a second variable in there, i.e.

http://www.b-pops.com/wow/spell.php?id=1240&mode=post

then the "LOGIN" link generated looks like:

http://www.b-pops.com/forums/login.php?redirect=../wow/spell.php?id=1240&mode=post

which also looks how it should. But when I click this one, and login, it redirects to

http://www.b-pops.com/forums/login.php?redirect=../wow/spell.php?id=1240?mode=post&sid=XXXXXXXXXXXXXXX

(Note the character before mode is '?' NOT '&' as it should be). Since my Login link is generated correctly, I don't think this is something I'm doing wrong. Anyone know a solution?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.