metafizzy / metafizzy/infinite-scroll

IE11: cannot set history with different origin

Open
#908 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
7.5k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

in ie 11 the line 47 history.js incorrectly fulfills:
`var linkOrigin = link.origin || link.protocol + '//' + link.host;`
The fact is that link.host also includes a protocol and it turns out that
`"https://hostname.com" !== "https://hostname.com:80"`
To fix, you can write something like this:
`var linkOrigin = link.origin || (link.protocol + '//' + link.host).replace(':' + link.port, '');`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with line 47 of history.js, where linkOrigin is assembled for IE11. Reproduce the different-origin history case and verify the origin comparison handles the port correctly; done means IE11 no longer rejects a valid history update for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.