[Webkit-unassigned] [Bug 24701] New: Hash after 301 redirect url lost

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 19 12:15:51 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24701

           Summary: Hash after 301 redirect url lost
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://tinyurl.com/ctxebo#second
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: JessieBerlin at gmail.com
                CC: JessieBerlin at gmail.com


When a hash for a div or anchor is placed after an url that 301 redirects to
another url, the hash is not kept when the redirect is executed.

Steps to reproduce:
1. Create a site that has a lot of text and a div with an id far down on the
page that is not visible when first navigating to that page. (e.g.
http://www.eecs.tufts.edu/~jberli03/WebkitDebug/hash.html which contains a div
with id="second" far down on the page)
2. Create a tiny url that redirects to that site. (e.g.
http://tinyurl.com/ctxebo)
3. Paste the tiny url into the address bar and add the hash to the end of it
with the id of the div far down on the page. (e.g.
http://tinyurl.com/ctxebo#second)
4. Notice that the hash is lost and it just redirects you to the site without
scrolling down to the appropriate div or adding the has to the url in the
address bar.

I am not entirely sure if this is a bug or just a design decision in Webkit
(both the Nightly and Safari 4 beta).

The functionality is there in FF 3.0.7 for the Mac (i.e.
http://tinyurl.com/ctxebo#second redirects to
http://www.eecs.tufts.edu/~jberli03/WebkitDebug/hash.html#second and scrolls
down to the div with the id "second").

While it is not really all that important for tiny urls, this might have an
impact on any other 301 redirects.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list