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

Add feature to allow adding URL params to the front of the URL. #3163

Merged
merged 1 commit into from
May 11, 2016

Conversation

cramforce
Copy link
Member

This is needed because some ad servers have (probably for legacy reasons) a behavior, where they treat URL params at the end specially. This is likely because these encode a URL and people can get that wrong.

Affects #2934

@@ -65,16 +65,23 @@ export function parseUrl(url) {
* Appends the string just before the fragment part of the URL.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we want to change the comment since it supports adding to the front of the url now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This is needed because some ad servers have (probably for legacy reasons) a behavior, where they treat URL params at the end specially. This is likely because these encode a URL and people can get that wrong.

Affects ampproject#2934
@zhouyx
Copy link
Contributor

zhouyx commented May 11, 2016

LGTM

@zhouyx zhouyx added the LGTM label May 11, 2016
@cramforce cramforce merged commit 644bbca into ampproject:master May 11, 2016
@cramforce cramforce deleted the add-to-front branch May 11, 2016 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants