PDA

View Full Version : Mike's header redirect anchor hash bug



Stallion
Mon 5th Aug '02, 7:27am
This is ALL I can find on it:
http://groups.google.com/groups?selm=5hvnj9%24g8s%40Holly.aa.net

Obviously the guy's not completely correct, since it works in some places but not all. I've been looking through the code and the one thing I find is a $noheader discrepency, but I'm in the process of investigating further.

Mike Sullivan
Thu 8th Aug '02, 1:52pm
Oh, I think I just had a revelation: the enctype.

I have no problems getting redirected back to my post from quick reply, but I do when I post a normal reply. The difference I can think of is the enctype. Still needs to be tested though.

I think we might have to do a double redirect -- one to something like showthread.php?goto=post&postid=X and have that redirect to the anchor.

Stallion
Thu 8th Aug '02, 3:08pm
That might be it. I tried a simple POST vs. GET, and the simple POST (no enctype supplied) seemed to work. Would it be possible to change (or leave off the enctype) if that solved the problem, or should we double-redirect.

Wayne Luke
Thu 8th Aug '02, 6:53pm
If you change or leave off the enctype, then you can't allow file uploads on the same page.

Raz Meister
Sat 10th Aug '02, 2:40pm
Remove the enctype but with checkbox asking whether you want to upload a file, then present a seperate special page for uploading.

Mike Sullivan
Sat 10th Aug '02, 5:01pm
Or just use the workaround in there already. :)