pagekit icon indicating copy to clipboard operation
pagekit copied to clipboard

{id} in the settings for custom blog permalinks does not work

Open Torsten-K opened this issue 6 years ago • 1 comments

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

Torsten-K avatar May 07 '19 21:05 Torsten-K

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.

tobbexiv avatar Jun 03 '19 19:06 tobbexiv