On Fri, 23 Jul 2021, 2:22 am Ee Durbin, <ewdur...@pyfound.org> wrote:
> On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley <aeros...@gmail.com> wrote: > >> On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc < >> gd.minhduc1...@gmail.com> wrote: >> >>> Hi, >>> >>> When I find what's new in 3.10 beta in >>> https://docs.python.org/whatsnew/3.10.html >>> It redirected me to https://docs.python.org/3/whatsnew/3.10.html which >>> shows 404 error not found nginx. Can you fix this? >>> >> >> Thanks for the report! I don't believe the code and/or config for the web >> server hosting docs.python.org is a public repo (may be mistaken), so >> I'll CC the director of infrastructure, Ee W. Durbin. I suspect they will >> know who to forward this to (or be able to fix it). >> > > Config that’s responsible for redirects lives at > > https://github.com/python/psf-salt/blob/master/salt/docs/config/nginx.docs-backend.conf > if anyone is able to take a look before I’m able to ascertain what’s going > on. > > Do we know what the expected behavior is? > The expected behaviour is what is currently happening: https://github.com/python/psf-salt/blob/6cdc61db0868d81514fde95ab5dfe11914e49754/salt/docs/config/nginx.docs-backend.conf#L19 3.10 is still in its pre-release cycle, so pages that don't exist in the 3.9 documentation (like the 3.10 What's New doc) need a "dev" or "3.10" in their URL to be reachable. Only when 3.10 is released and becomes the default version for the Python 3 docs would we expect the OP's link to work. That said, if nginx config allows for rewrites that only happen when a 404 is about to be emitted otherwise, it would make sense to have "/3/" URLs fall back to "/dev/" URLs before giving up and emitting the 404. Cheers, Nick. _______________________________________________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/3M4KRVNWXSC56VJK2E7O45DX3UJLBYM5/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/6IXBHB5V6ROSOZPWDJN3CZ6WHCUX44TW/ Code of Conduct: http://python.org/psf/codeofconduct/