I’ve tried the utility Linkchecker to check recursively all the links on my website. The util gave me the following error:
URL `https://fourbi.eu/page:2'
Name `‹ précédemment'
Parent URL https://fourbi.eu, line 559, col 9
Real URL https://fourbi.eu/page%3A2
Check time 3.275 seconds
Result Error: 404 Not Found
Basically, when using the pagination with the default page:2
generated url, the :
causes a problem:
- Linkchecker turns it into a
%3A
(it’s encoding the path part of the url, why? I don’t know) - Somewhere along the way, the
%3A
is not decoded as:
, and Kirby returns an 404.
Should it be decoded by Apache? Or should Kirby decode the requested URL before parsing the routes?
The Linkchecker util works well with Wikipedia URLs containing :
(e.g.: Template:Welcome - Wikipedia)
The website is hosted on a LAMP stack at Infomaniak.