-
Notifications
You must be signed in to change notification settings - Fork 35
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
Try to fix 404 #249
base: main
Are you sure you want to change the base?
Try to fix 404 #249
Conversation
|
This change is needed to fix the base url in #249 for creating previews
I tried to make the paths relative, but Hugo seems not to accept some little amount of links and makes them relative to the root instead of the current path. That makes the link checker pointless. |
I think one issue could be that the base URL doesn't end in a trailing slash. I didn't run Hugo myself, but in the following HTML: <head>
<base href="/pr-249">
</head>
<body>
<a href="./page">Page</a>
<a href="page">equivalent link</a>
</body> the links will actually point to The other issue is that with Lastly, I think the build script is not necessary because Hugo can be configured through environment variables, according to the docs. I believe it should suffice to set the env var |
No description provided.