Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Fixed issues with incorrect urls on Windows #1796

Merged
merged 2 commits into from
Jan 11, 2021

Conversation

mklanjsek
Copy link
Contributor

In some cases when doing url string manipulations, we were using filepath instead of path go package. Using OS specific filepath package on Windows resulted in incorrect urls that contain backslashes, as noted in #1696.

The original problem from #1696 is not present any more because that code is eliminated with latest breadcrumbs improvements. However, I found another occurrence where filepath was used when generating navigation entries and fixed it in this PR.

Big thanks to @lgellrich for correctly identifying the problem.

Signed-off-by: Milan Klanjsek [email protected]

Which issue(s) this PR fixes

  • Fixes #1996

@GuessWhoSamFoo
Copy link
Contributor

I'd like to see a test for this across all modules or moving this to a common helper to generate root paths.

@mklanjsek
Copy link
Contributor Author

thanks @GuessWhoSamFoo , decided to create path_util package and refactored code to use it.

@GuessWhoSamFoo GuessWhoSamFoo merged commit d393824 into vmware-archive:master Jan 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants