-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Relative links are rendered as relative to a file and not a directory #1547
Comments
Similar to #1201 |
I can confirm my relative links are rendered absolute links, with name of the current page prepended to them. Relative links are used in preview and allow to navigate between pages in edition mode. Rendered relative links should work the same way. |
Confirm on a new installation. All relative links are unusable right now. |
This is still happening on 2.2.51: relative links work correctly in preview mode, but they are rendered as if the current file was part of the path (so a link to "foo" inside a file "bar/baz.md" will be rendered to "bar/baz/foo" instead of just "bar/foo"). This is quite a problem as relative links are a very standard feature and rewriting them all to absolute links is not always easy (and makes moving files around in the future more difficult). |
Note that I just found the "treat relative links as root absolute" configuration option in the "html -> html" pipeline. The description of that option is the following: "For example, a link to foo/bar on page xyz will render as /foo/bar instead of /xyz/foo/bar." That description seems to imply that the current behaviour would be expected. It still seems to be at odd with any other markdown rendering system, and is also not how wiki.js itself renders the links in preview mode. @NGPixel can you tell us if the current behaviour is intended or if it's considered a bug? |
This is still here in 2.5.170. Is there any chance to get a comment on whether this issue is considered to be a bug or a feature, even if it can't be fixed now? This is a very fundamental part of the wiki so it would be great to know what is the behaviour that we can rely on going forward (the one from the preview pane, or the one after rendering)? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the bug
Note: this is similar but different from issue #1543.
The name of the current page is prepended to a relative mark-down link after rendering (instead of only prepending the current directory).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The behavior after rendering should be the same as the preview.
Host Info (please complete the following information):
The text was updated successfully, but these errors were encountered: