-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Avoid broken links caused by htmlsingle to html5 directory name change #8420
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
Comments
Is there any reason that the |
@philwebb Good question. It use to be that we produced html5 (pure asciidoctor output) and htmlsingle (going through docbook toolchain). You can see that here https://docs.spring.io/spring-security/site/docs/5.0.0.RELEASE/reference/ We've removed the docbook toolchain and now only html5 remains. We could rename it, but that would break people who linked to the old format. This is probably a lot fewer people, but I imagine that it still exists |
Can't you fix that with redirect rules on the server? We're post RC now and we still have a broken link in our doc. Can you please give us a decision before 2.3 is GA? |
I think the answer is that we have redirects setup from htmlsingle to html5 vs the other way around. Sorry I forgot to update the issue. This should be solved. Are there missing redirects still? |
https://docs.spring.io/spring-security/site/docs/5.3.0.RELEASE/reference/htmlsingle/ is 404ing for me. We are providing link to the matching Spring Security version in our bom so I don't think the current state of affairs would work for us. |
@snicoll I had thought we had a redirect setup. I'll look into that. I'd suggest updating the link so you don't put users through an unnecessary redirect. |
Any chance of changing that in a future release so we can link to |
@philwebb Is there something I'm missing here? I wouldn't think there would be so much push back on changing a link. Is this causing some problems that I'm missing? The issue is that either change is a "breaking" change since one format was removed. Switching to htmlsingle will just cause those using html5 the same problem you are experiencing. We chose this approach because it is consistent with what Spring Security has been doing since supporting both formats. |
I'm really just striving for consistency as much as possible across the portfolio. There's no technical reason that we can't link to https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ It does look like Spring Framework is another exception, but I'm pretty sure they used to publish to So all I'm really saying is, given the choice to redirect from |
Asking the same question the other way around, what am I missing? What's the reason to keep |
I'd be open to changing this for 5.4 (our next minor release), but this means you will need to update links twice which seems like more work. If that works for you, I will schedule it for our 5.4.x release |
Sounds good, it's not a lot of work on our end. I'll open a Boot issue to remind us to migrate back. |
Thanks @philwebb! I guess I misunderstood the reasoning and was not figuring you wanted to switch twice. I've schedule this for 5.4 |
Uh oh!
There was an error while loading. Please reload this page.
With thanks to @dreis2211 for bringing it to my attention, the change from
htmlsingle
tohtml5
in Spring Security 5.3 has broken some documentation links. It'd be nice if existing links to https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/ would continue to work. It'd also be nice if you could take any 5.2.x link and change it to 5.3.x and not get a 404.The text was updated successfully, but these errors were encountered: