Skip to content

Commit 2d1ac91

Browse files
committed
Minor fix: more versatile Help root pathing
1 parent cb9a09e commit 2d1ac91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/essence/Ancillary/Help.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const Help = {
1414
finalize: function (helpKey) {
1515
$(`#helpModal_${helpKey}`).on('click', function () {
1616
$.get(
17-
`${
18-
window.mmgisglobal.ROOT_PATH || ''
19-
}/public/helps/${helpKey}.md`,
17+
`${window.location.origin}${(
18+
window.location.pathname || ''
19+
).replace(/\/$/g, '')}/public/helps/${helpKey}.md`,
2020
function (doc) {
2121
// prettier-ignore
2222
Modal.set(

0 commit comments

Comments
 (0)