hypothesis / hypothesis/h

Pages with different URLs and no rel=canonical tags are treated as identical

Open
#4,480 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3.2k
Forks
459
Avg merge
27d 1h
Merged PRs (30d)
1

Description

### Steps to reproduce
1. Open an article on getpocket.com
2. Annotate it
3. Navigate to another article and annotate it.

### Expected behaviour

* annotation extension (more likely the server, see below) should detect the URL & title correctly
* as a result, annotations are split across multiple pages
* as a result, no annotations get orphaned

### Actual behaviour

On step 3, the URL in the navbar & the title tag are changed by the Pocket JS code. But the problem persists even if you reload the page manually.

I couldn't intercept the AJAX requests of the extension via the Network tab, might try with Wireshark later.

Here is the interesting part: the extension seems to send the right URL to the server but it groups it under a single URL & title anyway:

screen_shot_2017-04-04_at_19_00_48

I suspected `rel=alternate` or `rel=canonical` in the webpage source but didn't find any. Perhaps Pocket does some advanced DOM manipulation after loading, that I can't reverse engineer, because there was nothing suspicious in the HTTP headers either.

### Browser/system information

macOS / Chrome / uBlock Origin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.