Skip to content

Conversation

@btopro
Copy link

@btopro btopro commented Jun 16, 2021

This PR adds a new prop called bathPath which defaults to the current directory the app launches from initially, or respecting the <base href="..." /> tag's value (both of which document.baseURI resolve to if set / not set). This PR then uses this to lob off the 1st part of the detected pathname to ensure that the baseURI is not required in the routes defined. This allows for links to be relative (<a href="whatever-route">) or full reference (<a href="https://domainname/path/here/yet-route-is-set-here"> or <a href="/path/here/whatever-route">)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant