redirect url problem when logging in

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
bpops
Registered User
Posts: 37
Joined: Sat Aug 13, 2005 10:07 pm

redirect url problem when logging in

Post by bpops »

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? ... hp?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? ... &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? ... XXXXXXXXXX

(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?
bpops
Registered User
Posts: 37
Joined: Sat Aug 13, 2005 10:07 pm

Post by bpops »

Bump in hope of help :)
bpops
Registered User
Posts: 37
Joined: Sat Aug 13, 2005 10:07 pm

Post by bpops »

I asked this question a while back, and still haven't gotten any responses.

does anyone have any idea at all?

thanks :P
espicom
Registered User
Posts: 17905
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Post by espicom »

This isn't a support topic, because it is MOD related. Whatever is inserting the extra variables should be encoding the variable separators as html entities, NOT putting the question marks and ampersands in explicitely, and it's causing problems.

If this is a MOD of your own design, the MOD Developer's forum would be the best place to ask, otherwise, you'd need to ask on the topic where the MOD came from.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
bpops
Registered User
Posts: 37
Joined: Sat Aug 13, 2005 10:07 pm

Post by bpops »

Moderators feel free to move this topic to the appropriate forum then.

I asked here because it is a question about the redirect function of the login page. So I figured it was applicable to the forum itself and not necessarily a MOD question.

But I think you did answer my question. I should use a POST rather than a GET I think.

I will give this a try. thanks for the response!
Locked

Return to “2.0.x Support Forum”