Skip to main content

Bug Tracker

Side navigation

#3808 closed bug (fixed)

Opened January 07, 2009 09:58PM UTC

Closed April 16, 2011 03:32PM UTC

Last modified March 14, 2012 12:41PM UTC

$().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@stilbuero.de
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.diff (0.5 KB) - added by d3r1v3d March 04, 2009 02:31PM UTC.

    Proposed patch to resolve this ticket.

  • test.ajax.3808.dummy.html (0.0 KB) - added by d3r1v3d March 04, 2009 02:31PM UTC.

    (2 of 2) Test page detailing the error.

  • test.ajax.3808.html (1.0 KB) - added by d3r1v3d March 04, 2009 02:31PM UTC.

    (1 of 2) Test page detailing the error.

Change History (7)

Changed January 20, 2009 12:58PM UTC by klaus comment:1

cc: → klaus.hartl@stilbuero.de

Changed March 04, 2009 02:34PM UTC by d3r1v3d comment:2

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.

Changed October 26, 2010 08:40PM UTC by rwaldron comment:3

milestone: 1.3
priority: majorlow
status: newopen
version: 1.2.61.4.3

Changed December 27, 2010 10:36PM UTC by rwaldron comment:4

keywords: load,hash,internet explorerload,hash,internet,explorer,ajaxrewrite

Changed April 16, 2011 03:32PM UTC by jaubourg comment:5

resolution: → fixed
status: openclosed

We do remove the hash segment now.

Changed May 10, 2011 06:22PM UTC by scottgonzalez comment:6

What version was this fixed in?

Changed August 11, 2011 07:50PM UTC by scottgonzalez comment:7

milestone: → 1.4.3
version: 1.4.31.2.6