Hi,

I need to convert javascript uris like public://path/file.js to relative paths so we can use it on the disable javascript textarea.
It can help if you have multiple enviroments with diferent paths.

Comments

EduardoMadrid created an issue. See original summary.

eduardo morales alberti’s picture

Here is the patch.

svenryen’s picture

Thanks for the patch. I'll take a look this weekend.

akalam’s picture

Status: Needs review » Reviewed & tested by the community

Patch #2 works for us.

svenryen’s picture

Thanks for testing the patch. It needs a port to Drupal 7 before it can be committed.

svenryen’s picture

Here's a patch that's tested on D7 for public:// urls

  • svenryen committed 143db56 on 7.x-1.x
    Issue #2985558 by EduardoMadrid, svenryen: Convert javascript uris like...

  • svenryen committed 3bf5641 on 8.x-1.x
    Issue #2985558 by EduardoMadrid, svenryen: Convert javascript uris like...
svenryen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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