@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 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 = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",