@rspress/shared 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1174,6 +1174,9 @@ function replaceLang(rawUrl, lang, version, base = "") {
|
|
1174
1174
|
if (!url) {
|
1175
1175
|
url = "/index.html";
|
1176
1176
|
}
|
1177
|
+
if (url.endsWith("/")) {
|
1178
|
+
url += "index.html";
|
1179
|
+
}
|
1177
1180
|
let versionPart = "";
|
1178
1181
|
let langPart = "";
|
1179
1182
|
let purePathPart = "";
|
package/dist/index.mjs
CHANGED
@@ -1118,6 +1118,9 @@ function replaceLang(rawUrl, lang, version, base = "") {
|
|
1118
1118
|
if (!url) {
|
1119
1119
|
url = "/index.html";
|
1120
1120
|
}
|
1121
|
+
if (url.endsWith("/")) {
|
1122
|
+
url += "index.html";
|
1123
|
+
}
|
1121
1124
|
let versionPart = "";
|
1122
1125
|
let langPart = "";
|
1123
1126
|
let purePathPart = "";
|