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

Wikilink should be linking to the page’s permalink, rather than the slugified version of the title #43

Open
xplosionmind opened this issue May 4, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@xplosionmind
Copy link

Let’s suppose we want to create a wikilink leading to a note titled Wikilink test and with front matter:

---
permalink: /wlink-tst/
---

Currently, while creating the wilikink, the default parsing behaviour of [[Wikilink test]] is a link to /wikilink-test/. Instead, the plugin should be detecting that there is a permalink value in the front matter of the linked document, hence generate a link to /wlink-tst/

@carbontwelve carbontwelve added the bug Something isn't working label May 4, 2024
@carbontwelve carbontwelve added this to the v1.1.0 milestone May 4, 2024
carbontwelve added a commit that referenced this issue May 4, 2024
@carbontwelve
Copy link
Contributor

Hello, thank you for the bug report.

I have added a test in commit b73de92 that shows this is fixed in the in progress next version of the plugin. In the next version I refactored the way that wikilinks looked up their pages to match in the folowing order:

  1. if is path link, return filePathStem match state
  2. match file url to link href
  3. match file slug to link slug
  4. match file title to link identifier (name)
  5. match fle based upon alias

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

2 participants