-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paginator URL encoding problem #2177
Comments
A pull request would be fastest. |
Currently Hugo doesn't support ulr decoding and encoding? I am a newbie to On Tue, May 31, 2016 at 12:56 AM, Bjørn Erik Pedersen <
|
I can't reproduce the bug. Hugo version and your config file might be helpful. |
Not sure whether that is related but if my base URL contains the tilde symbol (~), then it won't show in the paginator-Link which makes the pages 404. |
I have the same issue as Funatiker with |
@marcliberatore maybe I should add some more information on that:
(using the .deb-Package that was released here on GitHub) I'm using the theme https://github.com/jnjosh/internet-weblog . My wild guess (without knowing much about hugo's code) is that the problem occurs somewhere around the function |
I've created a small site that should enable reproducing this issue. Clone https://github.com/marcliberatore/disappearing-tilde, use hugo v0.18 in server mode to render it, and check the "Older" button's URL. It's missing a tilde (at least for me). |
Thank very much @bep! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I use the following to paginate my posts:
I have chinese characters "阅读" in the tag, which is encoded as "%e9%98%85%e8%af%bb". Looks like Hugo encodes it and strips "%" to generate the URL, because
.Next.URL
returns this urlhttp://localhost:1313/tags/e99885e8afbb/page/2/
. This causes problem, for the directory structure is still in Chinese character, resulting in a 404 error.Is this a bug? What is the easiest way to fix this? Thanks!
The text was updated successfully, but these errors were encountered: