Skip to content

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

Open
wilkinsona opened this issue Apr 20, 2020 · 13 comments
Open
Labels
status: feedback-provided Feedback has been provided type: enhancement A general enhancement

Comments

@wilkinsona
Copy link
Member

wilkinsona commented Apr 20, 2020

With thanks to @dreis2211 for bringing it to my attention, the change from htmlsingle to html5 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.

@wilkinsona wilkinsona added status: waiting-for-triage An issue we've not yet triaged type: enhancement A general enhancement labels Apr 20, 2020
@philwebb
Copy link
Member

Is there any reason that the html5 folder has been chosen? I think it would be better if all out docs tried to publish with the same folder structure.

@rwinch
Copy link
Member

rwinch commented Apr 21, 2020

@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

@snicoll
Copy link
Member

snicoll commented May 3, 2020

We could rename it, but that would break people who linked to the old format.

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?

@rwinch
Copy link
Member

rwinch commented May 5, 2020

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?

@rwinch rwinch added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels May 5, 2020
@rwinch rwinch self-assigned this May 5, 2020
@snicoll
Copy link
Member

snicoll commented May 5, 2020

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.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels May 5, 2020
@rwinch
Copy link
Member

rwinch commented May 5, 2020

@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.

@philwebb
Copy link
Member

I think the answer is that we have redirects setup from htmlsingle to html5 vs the other way around.

Any chance of changing that in a future release so we can link to htmlsingle and not get the redirect? AFAICT there are aren't many /html5 paths in the other published Spring project Docs.

@rwinch
Copy link
Member

rwinch commented May 13, 2020

@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.

@philwebb
Copy link
Member

philwebb commented May 13, 2020

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 /html5 and it's not a massive deal if you don't change it. If you look at the other popular Spring projects, they mostly seem to have settled on /html or /htmlsingle, e.g:

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/
https://docs.spring.io/spring-integration/docs/current/reference/html/
https://docs.spring.io/spring-batch/docs/current/reference/html/
https://docs.spring.io/spring-data/jdbc/docs/current/reference/html/
https://docs.spring.io/spring-security/site/docs/5.2.4.RELEASE/reference/htmlsingle/

It does look like Spring Framework is another exception, but I'm pretty sure they used to publish to /html and I'll raise an issue to see if they will do that again.

So all I'm really saying is, given the choice to redirect from /htmlsingle to /html5 or /html5 to /htmlsingle if you choose the latter then things are consistent with other project.

@philwebb
Copy link
Member

Asking the same question the other way around, what am I missing? What's the reason to keep /html5?

@rwinch
Copy link
Member

rwinch commented May 13, 2020

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

@philwebb
Copy link
Member

Sounds good, it's not a lot of work on our end. I'll open a Boot issue to remind us to migrate back.

@rwinch
Copy link
Member

rwinch commented May 13, 2020

Thanks @philwebb! I guess I misunderstood the reasoning and was not figuring you wanted to switch twice.

I've schedule this for 5.4

@jzheaux jzheaux modified the milestones: 5.4.3, 5.4.4, 5.4.5, 5.4.6 Feb 12, 2021
@jgrandja jgrandja modified the milestones: 5.4.6, 5.4.7 Apr 12, 2021
@jzheaux jzheaux modified the milestones: 5.4.7, 5.6.0-M1 Jun 21, 2021
@eleftherias eleftherias modified the milestones: 5.6.0-M1, 5.6.0-M2 Jul 19, 2021
@rwinch rwinch modified the milestones: 5.6.0-M2, 5.6.0-M3 Aug 16, 2021
@sjohnr sjohnr modified the milestones: 5.6.0-M3, 5.6.0-RC1 Sep 20, 2021
@rwinch rwinch modified the milestones: 5.6.0-RC1, 5.6.0 Oct 19, 2021
@rwinch rwinch modified the milestones: 5.6.0, 5.7.0-M1 Nov 12, 2021
@sjohnr sjohnr modified the milestones: 5.7.0-M1, 5.7.0-M2 Jan 14, 2022
@marcusdacoregio marcusdacoregio modified the milestones: 5.7.0-M2, 5.7.0-M3 Feb 21, 2022
@marcusdacoregio marcusdacoregio modified the milestones: 5.7.0-M3, 5.7.0-RC1 Mar 21, 2022
@rwinch rwinch modified the milestones: 5.7.0-RC1, 5.8.x Apr 18, 2022
@rwinch rwinch removed their assignment Jun 9, 2022
@rwinch rwinch removed this from the 5.8.x milestone Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

10 participants