module-blog icon indicating copy to clipboard operation
module-blog copied to clipboard

Empty "Base URL" causes incorrect URLs to be generated

Open Serializator opened this issue 5 years ago • 0 comments

I want blog posts to be accessible the same way as CMS pages are, so I wrote a router that does this. But the URLs that were generated still had the "/blog" base URL in front of them.

Instead of "https://foo.bar/mirasvit-blog" it was "https://foo.bar/blog/mirasvit-blog", even though the blog post was accessible through "https://foo.bar/mirasvit-blog".

When I configured the base URL to be empty, it should generate the URL "https://foo.bar/mirasvit-blog", but this wasn't the case, it generated "https://foo.bar" without the URL key from the blog post behind it.

Screenshot 2019-08-08 at 16 40 31 Screenshot 2019-08-08 at 16 45 53 Screenshot 2019-08-08 at 16 49 23

Serializator avatar Aug 08 '19 14:08 Serializator