Bug Tracker

Opened 11 years ago

Closed 9 years ago

Last modified 8 years ago

#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: klaus.hartl@…
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)

test.ajax.3808.html (1.0 KB) - added by d3r1v3d 11 years ago.
(1 of 2) Test page detailing the error.
test.ajax.3808.dummy.html (28 bytes) - added by d3r1v3d 11 years ago.
(2 of 2) Test page detailing the error.
test.ajax.3808.diff (516 bytes) - added by d3r1v3d 11 years ago.
Proposed patch to resolve this ticket.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 years ago by klaus

Cc: klaus.hartl@… added

Changed 11 years ago by d3r1v3d

Attachment: test.ajax.3808.html added

(1 of 2) Test page detailing the error.

Changed 11 years ago by d3r1v3d

Attachment: test.ajax.3808.dummy.html added

(2 of 2) Test page detailing the error.

Changed 11 years ago by d3r1v3d

Attachment: test.ajax.3808.diff added

Proposed patch to resolve this ticket.

comment:2 Changed 11 years ago by d3r1v3d

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 9 years ago by Rick Waldron

Milestone: 1.3
Priority: majorlow
Status: newopen
Version: 1.2.61.4.3

comment:4 Changed 9 years ago by Rick Waldron

Keywords: ajaxrewrite added

comment:5 Changed 9 years ago by jaubourg

Resolution: fixed
Status: openclosed

We do remove the hash segment now.

comment:6 Changed 9 years ago by scottgonzalez

What version was this fixed in?

comment:7 Changed 8 years ago by scottgonzalez

Milestone: 1.4.3
Version: 1.4.31.2.6
Note: See TracTickets for help on using tickets.