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

Open relative files to the project root from markdown preview #2715

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raddatzk
Copy link

I have a project hosted in Azure DevOps and for proper navigation within markdown files I have to use absolute links relative to the project, like /documentation/service.md.

A link like [documentation](/documentation/service.md) opens properly from the editor, but from the preview window this results in an error "Browser configuration problem - The file /documentation/service.md does not exist". While the path is relative to the project root from the editor, it seems like this is treated as an absolute path from the preview window.

With this PR the current behavior is extended to also check if there is also a file that is relative from the project root when it could not be found as an absolute file.

@ybedrov
Copy link

ybedrov commented Mar 20, 2024

@FirstTimeInForever Could you please check PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants