🚨 fix(lint): AMP validation fails for redirect pages #54
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
javascript
Pull requests that update Javascript code
Description
The AMP validator reports two errors for the redirect pages, like this:
Steps to reproduce
npm run build
Expected behavior
The redirect pages should pass the AMP validation without any errors.
Actual behavior
The redirect pages fail the AMP validation with two errors.
Environment
Potential solution
To solve the AMP validation errors in the redirect template, follow these steps:
<meta http-equiv="...">
tag. This tag is not allowed in AMP documents, as it can interfere with the AMP cache and the browser's rendering.<script>
tag with an<amp-script>
tag. This tag allows you to run custom JavaScript in AMP documents, as long as you follow the amp-script guidelines.The text was updated successfully, but these errors were encountered: