pagekit
pagekit copied to clipboard
{id} in the settings for custom blog permalinks does not work
Problem
The tag {id} in the settings for custom blog permalinks does not work. The URL (permalink) doesn’t get generated, and clicking on Read more does not open the article. All other tags, as described in the doceumentation, like {year} or {slug}, do work.
Technical Details
- Pagekit version: 1.0.16
- Webserver: Apache 2.4
- Database: SQLite
- PHP Version: 7.2
This is an issue with the blog extension.
I assume that it is caused by this line: https://github.com/pagekit/extension-blog/blob/master/src/UrlResolver.php#L96
Untested solution: Move the unset to the beginning of the method, directly after the first assignement of the id as it should be unset, but if it's part of the url also set again.