JS bug: location.hash, .href

Harri Porten porten at trolltech.com
Tue May 7 16:25:03 BST 2002


On Tue, 7 May 2002, David Faure wrote:

> The code in KHTMLPart::openURL is supposed to detect that current URL
> and the URL to open are the same (minus the hash part) and to jump to
> that location without reloading the page. This is _supposed_ to work already,
> it sounds like a bug if it doesn't ;)
> I suggest to debug openURL, maybe the URLs don't match due to a trailing
> slash, or worse, to a redirection....

I'm afraid to say it seems to be the latter. args.reload is set to true in
slotRedirect() which make the above optimization not take place. Why
that's done without additional conditions I don't know.

Harri.





More information about the kfm-devel mailing list