Closed (fixed)
Project:
Persistent URL
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 00:45 UTC
Updated:
22 Aug 2012 at 19:01 UTC
Say a module has a block, and one of the variables for the block is:
$vars['some_asset'] = url(drupal_get_path('module', 'mymodule') . '/assets/cool_icon.png');
This gets re-written and the resulting image path doesn't exist. There are ways of working around this, but I am wondering is a there a special trick whereby a module developer makes this code compatible with purl?
Comments
Comment #1
bblake commentedThere is, in certain functions like url() or l() you can add an option to disable purl rewriting. Like:
Comment #2
bblake commented