Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change the url structure of amp pages to be pageurl+?amp #235

Open
thangarajj opened this issue Jan 30, 2021 · 1 comment
Open

Comments

@thangarajj
Copy link

Hello!

Since we are transitioning from an existing wordpress based website to a nuxtjs powered website, we are trying to reuse the existing url structure as is for seo purposes. For our amp pages, the default that is used in the wordress amp plugin was to append '?amp' to the regular page url in order to render it as an amp page. But from what I understand this nuxt amp module actually prefixes '/amp' to the root of the url path. Since I don't see an option to change this in the plugin options (as documented), I wanted to check if such an url change for amp pages is possible? Please let me know.

Copy link
Member

Hi,
Unfortunately there isn't any option to detect amp page using query params. But to achieve your goal you can create simple redirect rule o redirect urls with ?amp into new urls.
redirect-module could be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants