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

Broken links to index pages (when using obsidian) #46

Closed
olayway opened this issue Jul 17, 2022 · 5 comments
Closed

Broken links to index pages (when using obsidian) #46

olayway opened this issue Jul 17, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@olayway
Copy link
Member

olayway commented Jul 17, 2022

What happens?

Internal links created in Obsidian, that point to some_folder/page_name are converted - as expected - to URLs which end with some_folder/page_name. Unfortunately, index.md pages are treated exactly the same, so resulting URLs end with some_folder/index, which results in 404.

Example:
In docs/index page, I'm creating an internal link to demo/index page, like so: [[demo/index]]. A resulting anchor tag will point to [...]/demo/index, instead of [...]/demo.

Temporary workaround

Manually remove /index part from [[demo/index]] link automatically created by Obsidian, and leave [[demo]] only.

@olayway olayway added the bug Something isn't working label Jul 17, 2022
@rufuspollock rufuspollock changed the title Broken links to index pages Broken links to index pages (when using obsidian) Jul 20, 2022
@rufuspollock
Copy link
Member

My guess is easiest proper fix for this would be in wiki links remark plugin

@khalilcodes
Copy link
Contributor

@olayway this bug has been fixed with the latest update in remark-wiki-link-plus ie., v1.0.1 and package.json has been updated to reflect the changes.

@rufuspollock
Copy link
Member

@khalilcodes i'd have also liked that README.md also worked the same way - is that an easy fix?

@khalilcodes
Copy link
Contributor

@rufuspollock yes I believe it is and will update soon. 👍

@olayway
Copy link
Member Author

olayway commented Aug 10, 2022

@khalilcodes Works! Thank you 🌷!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants