m4tx/py3redirect

Immediately and always redirects to version 3

Opened this issue · 3 comments

Behavior seen:

  1. google "python regex"
  2. click on link on docs.python.org (https://docs.python.org/3/library/re.html)
  3. console shows "Navigated to https://docs.python.org/3/library/re.html" and I see docs for latest version (3.9.1)
  4. choose version 3.8
  5. I'm briefly redirected to https://docs.python.org/3.8/library/re.html but then redirected back to https://docs.python.org/3/library/re.html
  6. choose version 2.7 and I get the same behavior

I'm seeing this on both chrome and firefox. I've just installed this extension for the first time. I don't see anything in the readme suggesting any first time setup.

Clarification.... I was choosing the version from the select list provided by docs.python, not from the select list in the location bar item provided by this extension.

I'm used to the Django docs switcher extension which works from the version list on the page itself.

That said... maybe I'll submit a PR for newbie instructions that would help.

(Aside: it'd be nice if there were a convention for how dev doc sites showed their versions so that one extension could be used to manage a bunch of sites)

This is caused by #5. The extension used to work the way you (and I) want to.

I got bored/inspired over the holidays and created a new extension that remembers preferred versions for Python, Django, PostgreSQL, and Celery... so far. It's built to be extensible. Information and links to install at https://github.com/dougharris/unified_docs_switcher/