current symlink does not work for documentation anchor
Right now the current symlink only works if you're looking at the root page of the documentation, i.e. this URL http://cloud.spring.io/spring-cloud-static/current/ at the moment redirects to https://cloud.spring.io/spring-cloud-static/Greenwich.SR1.
However, the following examples lead to a 404:
- https://cloud.spring.io/spring-cloud-static/Greenwich.SR1/current/spring-cloud.html
- https://cloud.spring.io/spring-cloud-static/Greenwich.SR1/multi/multi__spring_cloud_context_application_context_services.html#_the_bootstrap_application_context
The redirection is also annoying as if you're going on current and then navigate to a particular aspect of the doc, you might copy a URL that's against a fixed version without noticing.
@snicoll do you mean
https://cloud.spring.io/spring-cloud-static/current/spring-cloud.html
https://cloud.spring.io/spring-cloud-static/current/multi/multi__spring_cloud_context_application_context_services.html#_the_bootstrap_application_context?
I don't understand why you would expect Greenwich.SR1/current to work and your second URL works fine for me.
you might copy a URL that's against a fixed version without noticing.
Ah ah, auto-owned. I copy/pasted the wrong links. I meant:
- https://cloud.spring.io/spring-cloud-static/current/spring-cloud.html
- https://cloud.spring.io/spring-cloud-static/current/multi/multi__spring_cloud_context_application_context_services.html#_the_bootstrap_application_context
(Whatever the version link is basically).
See https://github.com/spring-cloud/spring-cloud-release-tools/issues/165
@ryanjbaxter does that related issue address what's described here? I read it as a redirection to index.html but I am not sure it's going to handle any page/anchor.
@snicoll according to @marcingrzejszczak it does. @marcingrzejszczak can you explain?
No it won't handle anchors. It handles a redirect only. To handle anchors we would need to do some serious url rewriting.
I had a chat with @snicoll and we agreed that symlinks will work fine from the hoxton release. So I'll update the releaset to make a symlink and the next release will be hoxton