Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
1.1k views
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?
by
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?
by
What is your desired URL structure? Something like this?

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

Please log in or register to answer this question.

...