Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2006 at 05:04 UTC
Updated:
5 Mar 2006 at 09:28 UTC
When using fancy URLs (URLs look like /node/1 instead of index.php?q=node/1) fully-qualified links to other articles on the same site are "trimmed" when you submit the article so that they become relative links. However, they are relative to the top of the site, and not relative to the article. This means that if the article at /node/2 contains a link to http://sitename.tld/node/1, the resulting link in the article is "node/1", which when clicked on, results in "/node/node/1" because of the "directory" position in the URL of the current page.
Comments
Comment #1
sepeck commentedjust tested on recent CVS set up
Also, filtered HTML didn't seem to porperly filter code tags. Not sure if that was my fault or not yet.
Comment #2
justdave commentedI should note that the specific situation I encountered this in is also using URL Aliases (via the path module) for most pages on the site, and the actual URLs of the article that included the link had an alias that had a slash in it (because it was a subsection of a section of the site). The article being linked to was referenced by a traditional node URL though.
Comment #3
sepeck commentedI should have said, the first link didn't work, the other two did.
Comment #4
justdave commentedOf note... older versions of Drupal seem to have a in the document headers, cvs tip doesn't have that. Seems related....
Comment #5
justdave commentedjust noticed it ate my tag sample. :) that's a {base href="" /} that I put in (substitute the correct characters for the braces as necessary)
Comment #6
sepeck commentedsome additional testing.
Blue Marine works fine. In all other core themes it no longer works. chx says it's because of the base_url removal. Drupal.org has lots and lots of links like this. He thinks a small script can update these to use full url's. In any case it needs to be mentioned in update.
Also, the code tags arn't working either. Not sure if that's related or not. (probably not).
Comment #7
chx commentedscript is small but the execution time... roughly:
Comment #8
TDobes commentedThis is a duplicate of bug 13148.