We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9d40c commit f538cf1Copy full SHA for f538cf1
index.html
@@ -222,17 +222,7 @@ <h1>Welcome to Vafor IT</h1>
222
223
<script>
224
function getParentFolder() {
225
- var path = window.location.pathname;
226
- path = path.endsWith('/') ? path.slice(0, -1) : path;
227
-
228
- var segments = path.split('/');
229
230
- if (segments.length > 1) {
231
- return segments[segments.length - 2];
232
- } else {
233
- return '/';
234
- }
235
+ return window.location.origin; // Returns the protocol + domain
236
}
237
238
let link2 = getParentFolder();
0 commit comments