Path Filter
Path Filter takes internal Drupal paths in double quotes, written as e.g. "internal:node/99", and replaces them with the appropriate absolute HTTP URL using Drupal's url() function.
Suppose your site is located at 'http://example.com/mysite', clean URLs
are enabled, and 'node/99' has a URL alias of 'news/latest'. The following
are some examples of the replacements performed by this filter.
"internal:admin/user" -> "http://example.com/mysite/admin/user"
"internal:node/23" -> "http://example.com/mysite/node/23"
"internal:node/99" -> "http://example.com/mysite/news/latest"It even handles things like ...
"internal:node/23?page=1#section2" -> "http://example.com/mysite/node/23?page=1#section2"It works with clean URLs enabled or disabled.
The motivation for this filter was to provide a robust way of linking to
internal URLs from within content, so that your links do not break if you
move your site to a different path (e.g. from a development site at
http://example.com/dev/ to a production site at http://example.com/).
Edit: This module used to be named URL Alias Filter, but has been merged with work done by Ray Zimmerman.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.0 | 2008-Feb-20 | 8.96 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.0 | 2008-Feb-20 | 8.93 KB | Download · Release notes | Recommended for 5.x | |
| 4.7.x-1.1 | 2008-Feb-20 | 8.28 KB | Download · Release notes | Recommended for 4.7.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-Feb-20 | 8.97 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2007-Jun-19 | 8.93 KB | Download · Release notes | Development snapshot | |
