Skip to content

mhkeller/anchor-test

Repository files navigation

sapper-template

The default Sapper template. To clone it and get started:

npx degit sveltejs/sapper-template my-app
cd my-app
npm install # or yarn!
npm run dev

Open up localhost:3000 and start clicking around.

Reproduce bug one

Anchor links don't jump to the correct position

Not seen in Chrome 67.0.3396.99

  1. In Firefox 61.0.1...
  2. Click on a link and it will appropriately jump you down to that portion of the page
  3. Copy the url
  4. Paste the url and hit return. The page will initially load and then jump back up to the top of the page.

Reproduce bug two

Anchor links need the full path

This is appears in FF, Chrome and Safari

  1. Navigate to localhost:3000/blog, click one of the links, which have an href of #{post.slug}
  2. Instead of the normal behavior of appending #<my-slug> to the end of the url, it navigates to localhost:3000/<my-slug>.

See https://github.com/mhkeller/anchor-test-two for normal anchor browser behavior.

About

Bug reproduction in sapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published