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
URL redirection using docker #3407
Comments
Usually that should work. What is your SITE_URL setting? |
Use links that end in slashes, i.e. |
I had end slashes NAVIGATION_LINKS = {
DEFAULT_LANG: (
("/news/", 'News'),
),
}
NAVIGATION_ALT_LINKS = {
DEFAULT_LANG: (
("/about/", "About"),
),
} It works on the main page, but if I go to a page (about), the navbar still show links without the end slashes |
It work when I set |
When I tested your site, PRETTY_URLS was enabled, but the slashes in NAVIGATION_LINKS were missing. |
Yes, I've tried several combinations. Work with PRETTY_URLS enabled and NAVIGATION_LINKS with end slashes |
Environment
Python Version: 3.7.7
Nikola Version: 8.0.4
Operating System: Docker nginx-alpine
Description:
I use a docker nginx-alpine to deploy my nikola website to a specific port, and urls are not correctly redirected.
How to reproduce:
then, go to localhost:8008
putting the mouse on
News
show that the link is localhost;8008/news, but when I click on it, it redirect me to localhost/new/How can I get the right redirection ?
The text was updated successfully, but these errors were encountered: