GithubHelp home page GithubHelp logo

Comments (14)

foolip avatar foolip commented on May 26, 2024 1

Looking through whatwg.org.conf looking for other "squashing" redirects I don't see anything else that looks suspicious, so I think we're good here.

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

Thanks. I'm guessing this must have regressed as part of the move to Nginx. https://github.com/whatwg/misc-server/blob/master/debian/marquee/nginx/sites/whatwg.org.conf#L124 doesn't seem to account for multipage/ links.

@foolip?

from whatwg.org.

foolip avatar foolip commented on May 26, 2024

The original Apache setup is in 928a87b.

I was quite conservative in the conversion and AFAICT this ought to not have worked before either. Hard to say with confidence without erecting the Apache server again though.

Anyway, I can make them work.

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

In particular redirect 301 /specs/web-apps/current-work/ https://html.spec.whatwg.org/ suggests to me that https://whatwg.org/specs/web-apps/current-work/x would go to https://html.spec.whatwg.org/x. Currently that just redirects to https://html.spec.whatwg.org/.

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

Nginx seems to do some kind of catch-all approach rather than forwarding the original subpath+query.

from whatwg.org.

foolip avatar foolip commented on May 26, 2024

Aha, you're right, that "multipage" didn't appear in the destination URL doesn't mean it didn't work.

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

We should probably also vet the other redirects just in case we turned more into catch-all where we simply wanted to forward the original subpath+query (no idea what the term for this would be).

from whatwg.org.

foolip avatar foolip commented on May 26, 2024

I'm pretty sure the problem here is at "fall back to single-page HTML". Any return 30x line that doesn't have a $1 or $2` in it is redirecting everything to a fixed URL. I had to make some judgements about things like that, but this one was a mistake and not deliberate.

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

Okay, I guess we do have plenty of redirect tests already so we just need to add some for this.

from whatwg.org.

foolip avatar foolip commented on May 26, 2024

OK, so what I didn't realize was that the original "redirect 301 /specs/web-apps/current-work/ https://html.spec.whatwg.org/" was intending to preserver a trailing /multipage/. An easy fix coming up.

from whatwg.org.

foolip avatar foolip commented on May 26, 2024

http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#other-link-types works with whatwg/misc-server#63

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

Thanks @tantek!

from whatwg.org.

annevk avatar annevk commented on May 26, 2024

(Note that you might have to clear cache to get this to work.)

from whatwg.org.

tantek avatar tantek commented on May 26, 2024

Works great. Thanks for the quick fix @foolip @annevk !

from whatwg.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.