spring-cloud / spring-cloud-static

Static resources for the Spring Cloud website
http://cloud.spring.io/spring-cloud-static/
26 stars 25 forks source link

current symlink does not work for documentation anchor #16

Open snicoll opened 5 years ago

snicoll commented 5 years ago

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:

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.

ryanjbaxter commented 5 years ago

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

snicoll commented 5 years ago

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:

(Whatever the version link is basically).

ryanjbaxter commented 4 years ago

See https://github.com/spring-cloud/spring-cloud-release-tools/issues/165

snicoll commented 4 years ago

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

ryanjbaxter commented 4 years ago

@snicoll according to @marcingrzejszczak it does. @marcingrzejszczak can you explain?

marcingrzejszczak commented 4 years ago

No it won't handle anchors. It handles a redirect only. To handle anchors we would need to do some serious url rewriting.

marcingrzejszczak commented 4 years ago

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