#3808 closed bug (fixed)
$().load() fails 404 if there is a hash in the url
Reported by: | pixeline | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.4.3 |
Component: | ajax | Version: | 1.2.6 |
Keywords: | load, hash, internet, explorer, ajaxrewrite | Cc: | [email protected]… |
Blocked by: | Blocking: |
Description
NB: both 1.2.6 and 1.3 beta 2 are concerned with this bug.
Internet explorer fails to load a url that contains a hash (result: 404).
See: http://pixeline.be/experiments/jquerybeta/test2.html
It does not work in 1.2.6 either.
In my code, i solved it like this:
var href = $(this).attr('href').replace(/#.*/, "");
Attachments (3)
Change History (10)
comment:1 Changed 14 years ago by
Cc: | [email protected]… added |
---|
Changed 14 years ago by
Attachment: | test.ajax.3808.html added |
---|
Changed 14 years ago by
Attachment: | test.ajax.3808.dummy.html added |
---|
(2 of 2) Test page detailing the error.
Changed 14 years ago by
Attachment: | test.ajax.3808.diff added |
---|
Proposed patch to resolve this ticket.
comment:2 Changed 14 years ago by
Pursuant to the discussion on the jQuery-dev mailing list (http://groups.google.com/group/jquery-dev/browse_thread/thread/470f5b95641dd0a7), I've added both the test files and proposed patch to resolve this ticket.
Credit goes to spicyj for enlightening me on the proper placement of fragments within URLs.
comment:3 Changed 12 years ago by
Milestone: | 1.3 |
---|---|
Priority: | major → low |
Status: | new → open |
Version: | 1.2.6 → 1.4.3 |
Confirmed; http://jsfiddle.net/rwaldron/d3yWm/2/
comment:4 Changed 12 years ago by
Keywords: | ajaxrewrite added |
---|
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
We do remove the hash segment now.
comment:7 Changed 11 years ago by
Milestone: | → 1.4.3 |
---|---|
Version: | 1.4.3 → 1.2.6 |
(1 of 2) Test page detailing the error.