Skip to content

Commit 8bacd3c

Browse files
committed
handle .../hapi/ vs .../hapi
1 parent ea7dcc8 commit 8bacd3c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎HapiServer/web/hapi/index.jsp‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@
163163
'use strict';
164164
(() => {
165165
// Same-origin by default. To use another HAPI server, set this to its /hapi URL.
166-
const BASE = new URL('./', location.href).href.replace(/\/$/, '');
166+
var BASE = new URL('./', location.href).href.replace(/\/$/, '');
167+
if ( !BASE.endsWith("hapi") ) {
168+
BASE= BASE + "/hapi";
169+
}
167170
const $ = id => document.getElementById(id);
168171
let catalog = [], selectedId = null, info = null, loadVersion = 0;
169172
const status = message => {

0 commit comments

Comments
 (0)