You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was on Sphinx<5 and sphinx-sitemap==2.2 and updated my project dependencies to Sphinx>5 and sphinx-sitemap>2.2. When I did so, I noticed that the URLs generated in sitemap.xml where missing a backslash before {lang}, which made the URLs incorrect. See the picture below for the diff:
I can solve this by setting sitemap_url_scheme = "/{lang}{version}{link}", but that doesn't look like a good solution to me. Do you know if there is any other source of error here, possibly within sphinx-sitemap? I've seen https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html, but this error appears when just changing between sphinx-sitemap 2.2 to 2.3 (and keeping Sphinx>5 constant), so it looks like it was introduced by upgrading sphinx-sitemap.
The text was updated successfully, but these errors were encountered:
It looks like you have Sphinx<5 on the left since you have {html_baseurl}/404.html on the left and {html_baseurl}en/404.html on the right. I don't see any code changes between 2.2 and 2.5 that look like they would change the behavior.
The {html_basurl} gets a forward slash automatically added here, so I'm guessing something might be happening with using the plus operator? (I need to convert to using format)
I don't have an immediate answer as to what is going on, I'll have to test some more.
Hi!
I was on Sphinx<5 and sphinx-sitemap==2.2 and updated my project dependencies to Sphinx>5 and sphinx-sitemap>2.2. When I did so, I noticed that the URLs generated in
sitemap.xml
where missing a backslash before{lang}
, which made the URLs incorrect. See the picture below for the diff:I can solve this by setting
sitemap_url_scheme = "/{lang}{version}{link}"
, but that doesn't look like a good solution to me. Do you know if there is any other source of error here, possibly within sphinx-sitemap? I've seen https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html, but this error appears when just changing between sphinx-sitemap 2.2 to 2.3 (and keeping Sphinx>5 constant), so it looks like it was introduced by upgrading sphinx-sitemap.The text was updated successfully, but these errors were encountered: