Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent double slash in URL when loading a script #15350

Merged
merged 1 commit into from Jan 8, 2020
Merged

Prevent double slash in URL when loading a script #15350

merged 1 commit into from Jan 8, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jan 6, 2020

Otherwise generates a URL like https://example.com/additional-plugins//AbTesting/angularjs/manage/manage.directive.html?cb=303

In https://github.com/matomo-org/matomo/blob/3.13.1-b2/plugins/CoreHome/angularjs/http404check.js#L29 there will be otherwise ['./additional=plugins/', 'AbTesting', '...'].join(). The pluginsToWebRootDirCache is only used for that purpose.

refs #15340
This should not fix the referenced issue as a double slash should not cause any issue AFAIK but be still good to make that right. The $pluginsToWebRootDirCache is only used for that purpose to load these files through http404check

Otherwise generates a URL like `https://example.com/additional-plugins//AbTesting/angularjs/manage/manage.directive.html?cb=303`

In https://github.com/matomo-org/matomo/blob/3.13.1-b2/plugins/CoreHome/angularjs/http404check.js#L29 there will be otherwise `['./additional=plugins/', 'AbTesting', '...'].join()`. The `pluginsToWebRootDirCache ` is only used for that purpose. 

refs #15340
This should not fix the referenced issue as a double slash should not cause any issue AFAIK but be still good to make that right. The `$pluginsToWebRootDirCache ` is only used for that purpose to load these files through http404check
@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jan 6, 2020
@tsteur tsteur added this to the 3.13.1 milestone Jan 6, 2020
@diosmosis diosmosis merged commit 90a7737 into 3.x-dev Jan 8, 2020
@diosmosis diosmosis deleted the 15340 branch January 8, 2020 01:31
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
Otherwise generates a URL like `https://example.com/additional-plugins//AbTesting/angularjs/manage/manage.directive.html?cb=303`

In https://github.com/matomo-org/matomo/blob/3.13.1-b2/plugins/CoreHome/angularjs/http404check.js#L29 there will be otherwise `['./additional=plugins/', 'AbTesting', '...'].join()`. The `pluginsToWebRootDirCache ` is only used for that purpose. 

refs matomo-org#15340
This should not fix the referenced issue as a double slash should not cause any issue AFAIK but be still good to make that right. The `$pluginsToWebRootDirCache ` is only used for that purpose to load these files through http404check
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
Otherwise generates a URL like `https://example.com/additional-plugins//AbTesting/angularjs/manage/manage.directive.html?cb=303`

In https://github.com/matomo-org/matomo/blob/3.13.1-b2/plugins/CoreHome/angularjs/http404check.js#L29 there will be otherwise `['./additional=plugins/', 'AbTesting', '...'].join()`. The `pluginsToWebRootDirCache ` is only used for that purpose. 

refs matomo-org#15340
This should not fix the referenced issue as a double slash should not cause any issue AFAIK but be still good to make that right. The `$pluginsToWebRootDirCache ` is only used for that purpose to load these files through http404check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants