Skip to content

Commit

Permalink
fix relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikGlinka committed Feb 26, 2024
1 parent b611d7b commit c76289d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/rejseplanen/rejseplanen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Rejseplanen {

async init() {

const path = window.location.pathname.replace(/^(\/.*\.html)$/, '');
const path = window.location.href.replace(/(.*)\/.*\.[\w\d]+$|(.*)\/$/, '$1/');

console.log('csv path: ' + path + this.#dataUrls.base + this.#dataUrls.stops);

Expand Down

0 comments on commit c76289d

Please sign in to comment.