Skip to content

Correctly track relative links when navigating - #465

Merged
CosmicHorrorDev merged 1 commit into
Inlyne-Project:mainfrom
durbanlegend:main
Jul 22, 2026
Merged

Correctly track relative links when navigating#465
CosmicHorrorDev merged 1 commit into
Inlyne-Project:mainfrom
durbanlegend:main

Conversation

@durbanlegend

Copy link
Copy Markdown
Contributor

Navigation fails with relative paths

Ensure that std::env::set_current_dir is called when following a relative .md link. Canonicalize the path first to ensure it's unambiguously correct for the file watcher and the make_next history function.

@CosmicHorrorDev

Copy link
Copy Markdown
Collaborator

will take a look tomorrow, thanks!

@CosmicHorrorDev

Copy link
Copy Markdown
Collaborator

pulled the second commit into its own PR (#467). will take a closer look at the other bits tomorrow 🧚

@CosmicHorrorDev CosmicHorrorDev linked an issue Jul 20, 2026 that may be closed by this pull request

@CosmicHorrorDev CosmicHorrorDev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tweaked the commit message, but all the code looks great. thanks!

tested with the reproduction listed in the issues. main fails and this PR works perfectly including the file watcher

@CosmicHorrorDev
CosmicHorrorDev merged commit 7261f26 into Inlyne-Project:main Jul 22, 2026
4 checks passed
@durbanlegend

Copy link
Copy Markdown
Contributor Author

Thank you!

@CosmicHorrorDev CosmicHorrorDev changed the title Proposed fix for issue #398 Correctly track relative links when navigating Aug 6, 2026
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.

Navigation fails with relative paths

2 participants