IE, anchors and content-type

Discussion forum for MOD Writers regarding MOD Development.
Locked
roBBx
Registered User
Posts: 287
Joined: Fri Feb 15, 2008 3:00 am
Contact:

IE, anchors and content-type

Post by roBBx »

Hi to all! I was testing the mod Prime Instant Redirect, that removes all the meta pages when logging, posting, editing.. After posting the browser should point to the single post just submitted and the resulting url should be in the form:

viewtopic.php?f=XX&t=YY&p=ZZ#pZZ

That works fine with all browsers except with... Internet Explorer (tested with version 8.0.6001.18702), that produces in some cases the correct url and in other cases a url like this:

viewtopic.php?f=XX&t=YY&p=ZZ

Without the last part (#pZZ) the browser doesn't point to the single post but always to the top of the page.

When does IE work correctly and when not? As far I could test:
  • It works correctly when the poster DOESN'T have the permission to attach files ---> Content-Type of the post-form: application/x-www-form-urlencoded ---> resulting url: viewtopic.php?f=XX&t=YY&p=ZZ#pZZ
  • It doesn't work when the poster HAS the permission to attach files ---> Content-Type of the post-form: multipart/form-data; boundary=---------------------------xxxxxxxxxxxx ---> resulting url: viewtopic.php?f=XX&t=YY&p=ZZ
If you want, you can verify that in this test forum: http://robbx.altervista.org/testforum/v ... hp?f=2&t=1

- the guests have writing permission and don't have permission to attach files
- the user testuser (password: password) has the permission to write and to attach files

How can it happen? Are there some solutions to correct that problem? Others than changing browser. :P

Thanks in advance for your help!
Locked

Return to “[3.0.x] MOD Writers Discussion”