Open skroink opened 5 months ago
Input file
---
Birth: "[[1960]]"
Siblings:
- "[[Jane Doe]]"
- "[[Janie]]"
---
#### These links work as intended
- `$= dv.fileLink(dv.page(this.current().Birth).file.name)`
- `$= dv.fileLink("1960")`
- `$= dv.current().Siblings[1]`
#### These links appends to the url, and results in a 404
- `$= dv.current().Birth`
- `$= dv.current().Siblings[0]`
Output file
---
Birth: "[[1960]]"
Siblings:
- "[[Jane Doe|Jane Doe]]"
- "[[Janie|Janie]]"
---
#### These links work as intended
- [1960](1960)
- [1960](1960)
- [Janie](Characters/Janie.md)
#### These links appends to the url, and results in a 404
- [1960](Events And Dates/1960.md)
- [Jane Doe](Characters/Jane Doe.md)
So, it seems that the path created by Dataviewjs is "malformed" and Mkdocs doesn't found them.
I don't know if it's a problem with dataviewJS direcly, Mkdocs or my plugin that doesn't transform the link from dataviewJS specially…
To be honest, I'm not surprised by these bug with Dataview. As I stated in some issue (also on Dataview), it's impossible to update the API, and Dataview is in maintenance mode. We don't have reply of the author at this time.
The conversion for dataviewjs is pretty difficult, and I don't plan to update it.
As a test, could you try to use Obsidian digital garden (another plugin) with these note, to check if this links render ?
That's a shame, Guess I need to reduce some complexity then. Thanks for responding quickly though! I tried setting it up via. Digital Garden, but it sadly it's worse there, it doesn't even render the links made using dataview, unless it's made with clear text.
Ouch, at last my plugin does some cool things :D. I hope you will find some solution.
I'll find some way to work around it :) Great plugin, and works like a charm.
Material General discussion
Error
Bug description
I'm trying to make a wiki-style infobox which autogenerates people data from properties, such as birth, date, filial relations, etc. The problems I'm experiencing is, whenever I publish a page with links made using dataviewjs, that either contains spaces or is direct relation to a page, then the link is broken on the published page. It seems like the links are not referenced properly in the output, and just appends to the current url.
Steps to reproduce
"Characters/John Doe"
,"Characters/Jane Doe"
and"Characters/Janie"
"Dates/1960"
These links appends to the url, and results in a 404
$= dv.current().Birth
$= dv.current().Siblings[0]
Expected behavior
All the links should be static url's, instead of being relative url's.
Screenshots
No response
Additional context
No response
Requirements
Mkdocs.yml