forked from gohugoio/hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helpers: fix invalid pagination links
The path helper incorrectly transforms valid urls causing issues with pagination. One example is `.net` http://localhost:1313/tags/.net/ to http://localhost:1313/tags/index.net/page/2 The commit adds a regex test to check for `.xml` or `.html` extensions and applies the transformation on a match. This allows valid URLs like /foo/index.html/bar to also be passed through. Fixes gohugoio#2110
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters