Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

I'm building the AMP plugin

+3 votes
asked Feb 28 in Plugins by Aymane
Hi, I'm building the AMP plugin that would display AMP pages when the url ends with /amp.

I created a page module and trying to match the request with contain(/amp) in the URL.

I always get the native page rendred. How can I prioritize the amp over the native routing?
commented Mar 1 by pupi1985
What is your desired URL structure? Something like this?

site.com/123/amp => site.com/123/amp
commented Mar 2 by Aymane
site.com/123/title of question => site.com/123/title of qestion/amp

Please log in or register to answer this question.