I've got a component in the sapper template with pagination. Currently all links are behaving as though they're relative to root (localhost:3000/
in this case) regardless of whether the href is in the form page
or /page
, (I even tried ./page
.)
So for pagination where I just want to modify the query string I've got to pass the full path to the current view into the component for the href, which is a bit of a pain. Is there something I'm doing wrong that relative links aren't working? (Even better if there's a way to make them work calling goto()
directly, I've got a "Goto page: [x]" input.) If not is there a recommended way to get the current path from inside a component so I can throw that in the pagination component?