KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
75771
:
link to url without trailing slash is not marke...
P
roduct
:
konqueror
Co
m
ponent
:
khtml
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2004-02-21 15:30
Last Changed:
2005-01-23 23:13:03
Version: (using KDE KDE 3.2.0) Installed from: SuSE RPMs OS: Linux Consider a link pointing to the top level of site without a trailing slash, e.g.
http://www.ard.de
(instead of
http://www.ard.de/
) After clicking this link and going back to that page, the link color does not change to mark the link as visited. With a trailing slash, the color changes correctly. Example:
http://www.heise.de/newsticker/meldung/44880
In the first paragraph, a link (labeled "ARD") points to
http://www.ard.de
- this is not marked as visited. A different link in the same paragraph (labeled "Kabel Deutschland") points to
http://www.kabeldeutschland.de/
- this is correctly marked. This problem does not occur when visiting subdirectories (for example, when a link points to
http://www.heise.de/newsticker
which is changed to
http://www.heise.de/newsticker/
automatically in the address line, the link is correctly marked). If I remember correctly, this problem did not occur when I first used KDE 3 (3.0.5 or later), was introduced in a later version (don't know which; I think I at least used 3.1.1, 3.1.3, and 3.1.4), disappeared again (at least in 3.1.5, maybe earlier) and now shows up again in 3.2.0.
Comment
#1
Tommi Tervo 2004-02-21 15:48:43
***
Bug 52847
has been marked as a duplicate of this bug. ***
Comment
#2
uli9999 2004-02-21 16:11:24
I think that
Bug 52847
does not really fall under the pattern I have described. In that case, the link (e.g.
http://slashdot.org/articles/04/02/21/1349221.shtml
) does not point to the top level of a site. Also, the link matches exactly what is displayed in the address line of konqueror after clicking it. The problem with this link seems to be more specific. However, looking at the left column of Slashdot, for example the link "Books" (pointing to
http://books.slashdot.org
) falls under the pattern I described above. It shows the same behaviour.
Comment
#3
Daniel Naber 2004-03-10 22:24:59
I can reproduce this with 3.2 branch.
Comment
#4
uli9999 2004-03-16 16:53:34
This problem still exists after upgrading to 3.2.1.
Comment
#5
uli9999 2004-07-07 00:00:46
This problem still exists after upgrading to 3.2.3.
Comment
#6
Stephan Binner 2004-11-19 09:57:40
CVS commit by binner: Color '
http://foo
' links as visited if '
http://foo/
' is in history BUG: 75771 M +4 -1 cssstyleselector.cpp 1.328 --- kdelibs/khtml/css/cssstyleselector.cpp #1.327:1.328 @@ -754,5 +754,8 @@ static void checkPseudoState( const CSSS } //completeURL( attr.string() ); - pseudoState = KHTMLFactory::vLinks()->contains( u ) ? PseudoVisited : PseudoLink; + bool contains = KHTMLFactory::vLinks()->contains( u ); + if ( !contains && u.contains('/')==2 ) + contains = KHTMLFactory::vLinks()->contains( u+'/' ); + pseudoState = contains ? PseudoVisited : PseudoLink; }
Comment
#7
John Belmonte 2005-01-23 22:46:44
In HTTP,
http://example.com
,
http://example.com/
,
http://example.com/foo
, and
http://example.com/foo/
all represent different entities. Indeed, it's possible to make a typical web server such as Apache present different entities for each URL, although by default many do seem to offer canonicalization (e.g. redirect to
http://example.com/foo/
when you visit
http://example.com/foo
). Unlike the file systems we are often used to, in URL space, a "directory" can can contain both a "file" and "subdirectory" with identical names. I don't think that browsers should force a file-system-centric view of URL space by treating
http://example.com/foo
as visited if
http://example.com/foo/
is, or
http://example.com
as visited for
http://example.com/
for that matter. The real issue is that people who publish URL's are not careful about their trailing slashes.
Comment
#8
uli9999 2005-01-23 23:13:03
When I click on a link to
http://example.com
, that link should be marked as visited afterwards (independently of the question if the server redirects me to
http://example.com/
or not). Therefore, I think that John Belmonte's comment does not change the fact that the original behaviour is a bug. (However, he might be right that the fix in
comment #6
is not the correct solution to the problem.)
P
latform
:
SuSE RPMs
O
S
:
Linux
K
eywords
:
U
RL
:
People
Reporter
:
uli9999
Assigned To
:
Konqueror Developers
CC
:
kde markkremers com
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In