Skip to content

Relative paths considered relative to the current url (differs from Sapper behaviour) #5

Closed
@antony

Description

@antony

Porting the hackernews app I have found that:

From the ask page, hitting the ask navigation link:

<li><a rel="prefetch" class='{segment === "ask" ? "selected" : ""}' href='ask/1'>ask</a></li>

in Sapper - visits the /ask/1 page
In Svelte App - visits /ask/ask/1 page (which 404s)

I'm assuming this has something to do with baseUrl.

Note that in line with the thinking in #16 - we recently made this change to baseUrl which should be considered sveltejs/sapper#1562

This also isn't specific to hrefs since I've noticed that from the ask page, all references to static assets are attempting to be loaded under the /ask/ path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions