-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Regression of relURL since 0.101.0 #10497
Comments
See #10049 (comment) The documentation is correct: |
This was a bug fix, not a regression. |
@bep The linked issue is indeed a bugfix, but I believe it mistakenly introduced a regression, see my explanation below @jmooring there must be a misunderstanding, the linked comment and case mentioned applies when an url start with a slash, whereas mine does not: according to documentation, It's also not an issue in my code: it broke good old docsy (at least when some features are enabled, such as the persistent tab pane or swagger UI) |
@multun Let's take further discussion of this to the forum (https://discourse.gohugo.io). |
What version of Hugo are you using (
hugo version
)?All versions since 0.101.0 are affected. 0.100.2 is the last known working version.
This breakage was introduced by #10002
Does this issue reproduce with the latest release?
Yes
Description
When a baseURL has a path (like so
http://website.com/path/
), relURL fails to take the path into account.This leads to broken links and javascript failing to load with docsy.
Reproducer
This reproducers observes the result of
<script src='{{ "js/tabpane-persist.js" | relURL }}'></script>
withbaseURL = "https://dgexsolutions.github.io/osrd-website/"
With the failing revision:
With the working revision:
The text was updated successfully, but these errors were encountered: