"Absolute links" vesus "Relative links"

hass - December 30, 2006 - 14:13
Project:Path Filter
Version:6.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

thank you for this nice module, but please change the wording in the module help text. i'm realy confused and have done a code review to understand what you are writing about. The text in the module is wrong and it looks to me like a missunderstanding between relative and absolute paths.

Absolute Path:
This is a path that can be the FULL Path with domain name and directory('s) e.g. http://www.example.com/node/12 or a absolute path - relative to the webserver root /node/12. But the last is not a relative path - it's a absolute path, while it brings you back to the webservers root, wherever deep you are in a directory structure!

Relative Path:
This is a path notation relative to the *current* directory. For e.g. the current file you are is loading has the URL http://www.example.com/subdir/abc/index.php and you like to create a relative link inside this HTML Code to http://www.example.com/otherdir/def/index.php then you create a relative path named "../../otherdir/def/index.php". Other relaive path examples: "node/12", "../img/test.gif", etc.

One Article as a references:
http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm

#1

hass - December 30, 2006 - 14:16

For your module you should distinguish between:

1. absolute URL (http://www.example.com/node/12)
2. absolut Path (/node/12)
3. relative Paths (../../node/12) something you don't have/create

#2

DanielTheViking - April 17, 2007 - 07:49
Category:bug report» task

This doesnt sound like a "bug"... is the (good) point that the documentation needs to be clearer, or that some code changes would improve the module? Or s something actually malfunctioning? Setting it as a task for now.

#3

hass - April 17, 2007 - 11:56

more an explanation/documentation thing...

#4

mrfelton - May 16, 2009 - 15:40
Version:4.7.x-1.0» 6.x-1.x-dev
Status:active» patch (to be ported)

The documentation has been updated in the D6 branch... needs backporting.

#5

mrfelton - May 17, 2009 - 12:47
Status:patch (to be ported)» fixed

Backported to D5

#6

System Message - May 31, 2009 - 12:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

NordStern - August 12, 2009 - 15:05
Status:closed» active

Hi,
that is a very interesting task. Further step... if you have a multilanguage webpage. Authomatic setting for languages allow you to have two (or more...) frontpage roots: www.example.com/en/, www.example.com/it/

Then you can set correctly all the multilanguage menus and pages related correctly (see http://drupal.org/node/275705 that is a very clear tutorial about this topic).

Now, my problem is...
When I go to en/ "home" page and click on a link (an absolute path: That's my page!) I can correcly go there: www.example.com/en/page

If I switch on that page translation I correctly go on there (www.example.com/it/pagina ). BUT, if I go from www.example.com/en/home to my page (remember: absolute path), I find myself... in www.example.com/it/pagina ! :-(

Can someone help me?
Thanks

#8

mrfelton - September 27, 2009 - 16:23
Status:active» closed

I'm not sure I understand your issue, but I don't think it is linked to this old ticket. Please open a new ticket and try and describe your problem a little more.

 
 

Drupal is a registered trademark of Dries Buytaert.