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

gpk’s picture

Title: Clarify whether this module transforms unaliased to aliased paths » State on documentation page that this module transforms unaliased (local) paths to aliased paths
Category: bug » task

As 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

Garrett Albright’s picture

It uses Drupal's internal url() function to build URLs, so any path that url() would convert with regards to aliases, Pathologic does as well.

not_Dries_Buytaert’s picture

I 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?

Anonymous’s picture

From 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! ;)

not_Dries_Buytaert’s picture

Status: Active » Closed (fixed)

I have just done so, by adding following text to the documentation page (http://drupal.org/node/257026):

This module also automatically transforms unaliased (local/ internal) paths to aliased paths, if one exists, as explained here.