You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -78,6 +84,14 @@ Take our documentation source files as an example:
78
84
- Internal links to `.md` files will be converted to the [page route path](./page.md#routing), and both absolute path and relative path are supported.
79
85
- External links will get `target="_blank" rel="noopener noreferrer"` attrs and a <OutboundLink /> indicator.
80
86
87
+
**Suggestion**
88
+
89
+
Try to use relative paths instead of absolute paths for internal links.
90
+
91
+
- Relative paths are a valid links to the target files, and they can navigate correctly when browsing the source files in your editor or repository.
92
+
- Relative paths are consistent in different locales, so you don't need to change the locale path when translating your content.
93
+
- When using absolute paths, if the [base](../reference/config.md#base) of your site is not `"/"`, you will need to prepend the `base` manually or use [base helper](./assets.md#base-helper).
94
+
81
95
::: tip
82
96
This links extension is supported by our built-in plugin.
0 commit comments