Skip to content

Fix AMP.navigateTo with relative URLs on cache#29842

Merged
dreamofabear merged 3 commits intoampproject:masterfrom
dreamofabear:relative-navigateto
Aug 18, 2020
Merged

Fix AMP.navigateTo with relative URLs on cache#29842
dreamofabear merged 3 commits intoampproject:masterfrom
dreamofabear:relative-navigateto

Conversation

@dreamofabear
Copy link
Copy Markdown

@dreamofabear dreamofabear commented Aug 14, 2020

Fixes #26248 and patches #22376.

  • getSourceUrl('/path/to/page.html') causes a userAssert on cache since *.cdn.ampproject.org/path/ is not a valid CDN prefix

@google-cla google-cla bot added the cla: yes label Aug 14, 2020
@dreamofabear
Copy link
Copy Markdown
Author

@ampproject/wg-ads-reviewers Can I get a bundle size approval please?

@dreamofabear dreamofabear merged commit b41313a into ampproject:master Aug 18, 2020
@dreamofabear dreamofabear deleted the relative-navigateto branch August 18, 2020 15:54
@samouri
Copy link
Copy Markdown
Member

samouri commented Aug 18, 2020

Gool

ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
* Fix AMP.navigateTo with relative URLs on cache.

* Add resolveRelativeUrl to URL service.

* Remove import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AMP.navigateTo issue on AMP Cache page

5 participants