Unverified Commit 2d378872 authored by Gerald Monaco's avatar Gerald Monaco Committed by GitHub

Don't add `.amp` to pathname (#12528)

parent b72d9fa4
...@@ -948,10 +948,6 @@ export default class Server { ...@@ -948,10 +948,6 @@ export default class Server {
const isServerProps = !!components.getServerSideProps const isServerProps = !!components.getServerSideProps
const hasStaticPaths = !!components.getStaticPaths const hasStaticPaths = !!components.getStaticPaths
if (isSSG && query.amp) {
pathname += `.amp`
}
if (!query.amp) { if (!query.amp) {
delete query.amp delete query.amp
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment