Skip to content

Commit

Permalink
Fix amphtml link rel not respecting basePath
Browse files Browse the repository at this point in the history
Closes #15244
  • Loading branch information
amiralies committed Aug 6, 2020
1 parent ebd1434 commit f9ea2ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/next/next-server/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ function assignDefaults(userConfig: { [key: string]: any }) {
if (result.assetPrefix === '') {
result.assetPrefix = result.basePath
}

if (result.amp.canonicalBase === '') {
result.amp.canonicalBase = result.basePath
}
}
}
}
Expand Down

0 comments on commit f9ea2ec

Please sign in to comment.