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

Fix relative paths in static apps #536

Merged
merged 7 commits into from
Jul 26, 2023
Merged

Fix relative paths in static apps #536

merged 7 commits into from
Jul 26, 2023

Conversation

zampino
Copy link
Collaborator

@zampino zampino commented Jul 25, 2023

In case of unbundled static apps, relative-root-prefix is invoked to build relative paths, walking up by multiples of ../ until the root. Now after #529, paths to notebooks/some/x.clj became /notebooks/some/x/[index.html] adding up one level to reach the root.

Fixes #534.

@zampino
Copy link
Collaborator Author

zampino commented Jul 25, 2023

Also tested this against the markdown library which has a custom js bundle:

@zampino zampino marked this pull request as ready for review July 25, 2023 16:13
@zampino zampino merged commit 278380e into main Jul 26, 2023
18 checks passed
@zampino zampino deleted the fix-534 branch July 26, 2023 09:24
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.

Relative parent Paths broken in static App
1 participant