Posted by joelstein on November 17, 2009 at 4:18am
3 followers
Jump to:
| Project: | Path Filter |
| Version: | 6.x-2.0-beta3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
If the "Absolute path (relative to document root)" option is selected on the filter settings form, only links to nodes are affected, but not files. Thus, files are always rendered as absolute URLs.
Since file_create_url() always returns absolute URLs, the only way to do this is to remove the base_url from the returned path in _pathfilter_process_files(). This is accomplished in the provided patch.
| Attachment | Size |
|---|---|
| pathfilter.module.patch | 723 bytes |
Comments
#1
Good catch, and patch. This has now been applied to D6 and 5 branches in CVS.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.