better-amp icon indicating copy to clipboard operation
better-amp copied to clipboard

Bad URL for Desktop Version in sub-directory

Open mohidotpy opened this issue 4 years ago • 2 comments

Hello I have a WordPress installed on a subdirectory: https://example.com/wordpress/ and AMP URL format is End Point.

And the problem is in the paginated category pages, the subdirectory appears twice in the "View Desktop Version" URL.

for example: in this URL -> https://example.com/wordpress/home-goods/amp/page/2/, the "View Desktop Version" URL is https://example.com/wordpress/wordpress/category/home-goods/page/2/

mohidotpy avatar Nov 12 '21 08:11 mohidotpy

I think a good approach is adding a filter to the ur: Even if a problem appears in the future, users could resolve it with add a filter.

mohidotpy avatar Nov 12 '21 09:11 mohidotpy

I sent a pull request for this issue.

#76

mohidotpy avatar Nov 12 '21 13:11 mohidotpy