Jump to content

Archived

This topic is now archived and is closed to further replies.

bpops

phpBB: redirect on login problem.

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?

Share this post


Link to post
Share on other sites

×

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.