-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly request AMP document when fetching inner app shell component
In the original app shell implementation proposed in ampproject/amp-wp#1519 the is_amp_endpoint() function was modified in order to return true if an inner component was requested. In order to achieve the same effect without altering the original is_amp_endpoint() implementation, we're explicitly asking for an AMP document when requesting the inner component. Simply, an AMP slug is appended to a URL when fetching a new page.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters