hdoc-tools 0.14.3 → 0.14.5
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/hdoc-build.js
CHANGED
@@ -669,7 +669,8 @@
|
|
669
669
|
|
670
670
|
if (hdocbook_project.redirects && hdocbook_project.redirects instanceof Array) {
|
671
671
|
for (let i = 0; i < hdocbook_project.redirects.length; i++) {
|
672
|
-
redirects[hdocbook_project.redirects[i].url
|
672
|
+
const redirect_key = hdocbook_project.redirects[i].url.indexOf('/') == 0 ? hdocbook_project.redirects[i].url.substring(1) : hdocbook_project.redirects[i].url;
|
673
|
+
redirects[redirect_key] = hdocbook_project.redirects[i];
|
673
674
|
}
|
674
675
|
}
|
675
676
|
|