Closed (fixed)
Project:
Pathologic
Version:
6.x-3.2
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2010 at 08:29 UTC
Updated:
25 Aug 2010 at 11:51 UTC
Jump to comment: Most recent
Please, can someone (preferably a maintainer of this module) confirm that this module automatically transforms unaliased to aliased paths? Please, add the answer to the documentation. This question was first posted here: http://drupal.org/node/819512#comment-3221840
Comments
Comment #1
gpk commentedAs I've just started experimenting with pathologic I can confirm that it does transform unaliased to aliased paths. I didn't know it did that!!
Of course this only works for paths that pathologic considers "local".
Changing to a task for the documentation update. Documentation page: http://drupal.org/node/257026
Comment #2
Garrett Albright commentedIt uses Drupal's internal url() function to build URLs, so any path that url() would convert with regards to aliases, Pathologic does as well.
Comment #3
not_Dries_Buytaert commentedI guess, you mean for D6: http://api.drupal.org/api/function/url/6
I think (but am NOT sure) that aforementioned function calls another function: http://api.drupal.org/api/function/drupal_get_path_alias/6
Though, as I (and perhaps more admins of this module) can not read code well enough, can anyone please:
1) explain whether aforementioned function (reused by Pathologic) automatically transforms unaliased paths to aliased paths?
2) add the answer to the project webpage + readme?
Comment #4
Anonymous (not verified) commentedFrom the mentioned documentation it's apparent even to the non-coder that:
"If you provide only the path (e.g. "node/34"), it will be considered an internal link. In this case, it should be a system URL, and it will be replaced with the alias, if one exists. Additional query arguments for internal paths must be supplied in $options['query'], not included in $path."
That should answer the question. The documentation page is freely editable, so just do it! ;)
Comment #5
not_Dries_Buytaert commentedI have just done so, by adding following text to the documentation page (http://drupal.org/node/257026):