Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
in Plugins by
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?
Thanks! I still have the issue. The plugin match_request() doesn't work on questions pages.
function match_request($request)
        return true;
Doesn't work on questions pages. Can you help?
What is your desired URL structure? Something like this?

site.com/123/amp => site.com/123/amp
site.com/123/title of question => site.com/123/title of qestion/amp
Any news on this, Aymane?

Please log in or register to answer this question.