press-this icon indicating copy to clipboard operation
press-this copied to clipboard

Chops of parts after the hash on StackOverflow/StackExchange links

Open jpluimers opened this issue 7 years ago • 2 comments

Before pasting in Press-This:

  • https://web.archive.org/web/20171107193129/https://stackoverflow.com/questions/21310538/get-all-lines-containing-a-string-in-a-huge-text-file-as-fast-as-possible/21311227#21311227
  • https://stackoverflow.com/questions/21310538/get-all-lines-containing-a-string-in-a-huge-text-file-as-fast-as-possible/21311227#21311227

After pasting the part starting with the hash is chopped off:

  • https://web.archive.org/web/20171107193129/https://stackoverflow.com/questions/21310538/get-all-lines-containing-a-string-in-a-huge-text-file-as-fast-as-possible/21311227
  • https://stackoverflow.com/questions/21310538/get-all-lines-containing-a-string-in-a-huge-text-file-as-fast-as-possible/21311227

This happens on all stackoverflow.com/stackexchange.com/superuser.com/related sites.

It doesn't happen on other sites.

jpluimers avatar Nov 07 '17 19:11 jpluimers

To confirm, do you mean when you paste into the Editor or into the URL window to scan a site? For the later, that makes sense to happen because the parser looks at the page as a whole--not segments of a site based on anchors (the hash part of the URL).

kraftbj avatar Nov 09 '17 15:11 kraftbj

Paste into the URL. This used to work fine for most sites when using the bookmarklet. People expect anchors to continue working in the new situation.

jpluimers avatar Nov 09 '17 20:11 jpluimers