Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive letter is added to relative path on navigation when page is build on windows #448

Closed
bartcharbon opened this issue Jun 17, 2024 · 2 comments

Comments

@bartcharbon
Copy link

Describe the bug

When using "pnpm run build" on a Windows machine the navigation of the web page breaks due to the addition of a Drive letter in the relative path, after the hash.

The same page created on a Linux machine via the same command works fine. (probably related the the Linux paths not containing a drive letter)

Your Example Website or App

molgenis/vip-report-template#319

Steps to Reproduce the Bug or Issue

Navigation to "/test" (via href)
results in this url:
file:///path/to/test.html#/C:/test

Expected behavior

Navigation to "/test" (via href)
results in this url:
file:///path/to/test.html#/test

Screenshots or Videos

No response

Platform

Windows
Tested on Chrome and Edge, possibly/probably the same for other browsers
Version 0.13.5

Additional context

No response

@ryansolid
Copy link
Member

How are you defining the paths? Is this from SolidStart? Is this during SSR?

@bartcharbon
Copy link
Author

bartcharbon commented Jun 21, 2024

The problem seems te be on our end, we used lower case <a> for some hrefs, switching to <A> solves the problem.

In fact it was not limited to pages build on windows, not sure why it seemed that way at first

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

No branches or pull requests

2 participants