Bug in KURL handling(?)

Andras Mantia amantia at kde.org
Tue Dec 14 12:11:39 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 14 December 2004 14:00, Thiago Macieira wrote:
> Andras Mantia wrote:
> >I don't get it why should it work in this case? If I have the file
> >called "A#B" now "file:///home/user/A#B" isn't the same as
> >"/home/user/A#B"?
>
> No. The former is file "A" in "/home/user", with protocol "file:" and
> anchor "B". The latter is file "A#B" in "/home/user".
>
> Anchors (as well as queries - "?") are only allowed in URLs. If you
> type a pathname (i.e, without the leading "file:///"), you are not
> allowed anchors or queries.
>
> >With the current logic this looks like the first one
> >will open file "A" and go to link "#B" and the second one would open
> >file "A#B".
>
> That's it.

Ok, I see. I think this is a point where the fact that Konqueror is both 
a file manager and a browser is not the best thing. In a browser one 
expects that every path is converted to a file:/// URL, and this way 
anchors work there (just try Firefox for example), while in a file 
manager one would expect that a file is accessed.
 Whatever, thankfully people usually don't type such entries in the 
location bar too often.

Andras

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBvtiATQdfac6L/08RAiIcAKCAfUUZugC9rYpoOegLRICCJfmZnwCfRKpQ
znksg9ngpuzT5vfdepBXpYE=
=goFu
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list