Problem/Motivation
When on a multilingual site that uses path prefixes for language selection, the URL generated to the original file in the source and licensing comment incorrectly includes the path prefix, resulting in a 404.
Example of what is currently output:
/* Source and licensing information for the line(s) below can be found at http://example.com/en/sites/all/modules/custom/my_custom_module/script.js. */
Example of what is expected:
/* Source and licensing information for the line(s) below can be found at http://example.com/sites/all/modules/custom/my_custom_module/script.js. */
Proposed resolution
The code currently uses the url
function, when it should use the file_create_url
function.
Remaining tasks
Provide patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2510048_advagg_source-and-licensing-url.patch | 1.43 KB | CalebD |
Comments
Comment #1
CalebD CreditAttribution: CalebD commentedPatch attached.
Comment #2
CalebD CreditAttribution: CalebD commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the bug report with patch! It's been committed.