py3redirect icon indicating copy to clipboard operation
py3redirect copied to clipboard

Immediately and always redirects to version 3

Open dougharris opened this issue 4 years ago • 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.

dougharris avatar Dec 23 '20 19:12 dougharris

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)

dougharris avatar Dec 23 '20 19:12 dougharris

This is caused by https://github.com/m4tx/py3redirect/pull/5. The extension used to work the way you (and I) want to.

verhovsky avatar Dec 23 '20 23:12 verhovsky

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/

dougharris avatar Jan 07 '21 14:01 dougharris