module-blog
module-blog copied to clipboard
Empty "Base URL" causes incorrect URLs to be generated
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.


