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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CalebD’s picture

Patch attached.

CalebD’s picture

Status: Active » Needs review
mikeytown2’s picture

Status: Needs review » Fixed

Thanks for the bug report with patch! It's been committed.

  • mikeytown2 committed 3fbd358 on 7.x-2.x authored by CalebD
    Issue #2510048 by CalebD: Multilingual sites with path prefix have...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.