-
-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Labels
breakingIntroduces breaking changes with existing installationsIntroduces breaking changes with existing installationsbugSomething isn't workingSomething isn't working
Milestone
Description
Discussed in #150
Originally posted by The-going November 9, 2021
- A permanent link to the chapter cannot be obtained for all pages. Links are handled correctly for the title pages or `_index.md ' files and if such a page does not exist, an error message or a warning appears in the log, depending on the global settings. This is the correct operation of the code.
- For the rest of the pages. If the page exists, then we have a link to this page, and not to the chapter that is on this page. If the page does not exist, then we get a link to the current page, i.e. to itself. And no messages in the log or changes in the appearance of the link. This is unacceptable behavior.
This will not be good at all if the content of a multilingual site is organized in one directory, i.e. /_index.en.md ,_index.fr.md ,about.en.md ,about.fr.md
There is another problem of bad links, but it relates to the short code 'mermaid'. If you do something like:
{{< mermaid align="left" >}}
flowchart LR;
S("testing") --> X["Test-1"]
style S fill:#99ccff;
click S "{{% relref "/core/_index.md#about-testing" %}}"
click X "{{% relref "/core/testing.md#test-1" %}}"
{{< /mermaid >}}
For site: http://localhost:1313/website/
The link will look like: http://localhost:1313/core/testing/#test-1
And there should be: http://localhost:1313/website/core/testing/#test-1
For this construction, everything is fine in the text of the page: ["Test-1"]({{% relref "/core/testing.md#test-1" %}})
Metadata
Metadata
Assignees
Labels
breakingIntroduces breaking changes with existing installationsIntroduces breaking changes with existing installationsbugSomething isn't workingSomething isn't working