Bug #12635 Updated: href="#botton" gives wrong url
| From: | jeroen@php.net | Date: | Sun, 12 Aug 2001 22:11:49 +0000 |
| Subject: | Bug #12635 Updated: href="#botton" gives wrong url | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63024@lists.php.net to get a copy of this message | ||
ID: 12635
Updated by: jeroen
Reported By: lukas_schell@bluewin.ch
Status: Open
Bug Type: Session related
Operating System: ?
PHP Version: 4.0.4
New Comment:
http://webcour.swisszone.ch/a/essais/session.php?f=1
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your
request.
Please contact the server administrator, root@localhost and inform them of the time the error
occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle
the request.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at www.webcour.swisszone.ch Port 80
Previous Comments:
------------------------------------------------------------------------
[2001-08-11 17:53:17] lukas_schell@bluewin.ch
Try the following file:
http://webcour.swisszone.ch/a/essais/session.php?f=1
------------------------------------------------------------------------
[2001-08-09 17:32:05] jeroen@php.net
It should, or am I wrong?
the ?-part is of the page-part of it, and the # is for the section.
Doesn't ? go BEFORE the # in HTTP-specs? Can someone verify that, since I 'forgot'
the RFC-nr ;-)
Since PHP is inserting it between, I'm quite sure it should go before, otherwise the person who
wrote it wouldn't have taken the trouble to do so :)
Does your browser have problems with that?
------------------------------------------------------------------------
[2001-08-09 17:13:07] lukas_schell@bluewin.ch
The workaround
href="/programs/mypage.php#bottom"
does not work, for
session_id=
is inserted between mypage.php and #bottom
This works :
<script language="JavaScript">
var str1="<a hr";
var str2="ef";
document.write(str1+str2+"='#REPLY'>go to bottom</a>");
</script>
(Writing "href" in one string makes php transform the address)
But when reloading the page with the reload button, the get arguments are added once again behind
the address of the link. The link still works, but the page is reloaded again !
------------------------------------------------------------------------
[2001-08-07 19:16:58] jeroen@php.net
URL's matching "^#" should be left alone by the transparent session-id-adder, since
they are internal to that page.
Workaround: Write href="/programs/mypage.php#bottom"
------------------------------------------------------------------------
[2001-08-07 19:05:17] lukas_schell@bluewin.ch
When using a session together with an internal link, say :
<a href="#bottom">go to bottom</a>
the resulting url is say :
http://www.tre.dds/programs/?session_id=3l344l4j3l#bottom
which directs to :
http://www.tre.dds/programs
instead of say http://www.tre.dds/programs/mypage.php#bottom
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12635
Edit this bug report at http://bugs.php.net/?id=12635&edit=1