Skip to content

Commit

Permalink
V 2.1.2 - Small bugfix for MTE path interpretation from the URL address.
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarJAH committed Aug 13, 2021
1 parent 019908a commit 5105b14
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/ds-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16877,7 +16877,12 @@ class DSBrowser {

readStateFromUrl() {
var searchParams = new URLSearchParams(window.location.search);
this.path = searchParams.get('path') || null;
this.path = searchParams.get('path') || null; // fix for MTE path in url -> " + " is written as "%20+%20" which is not correctly returned by the URLSearchParams class

if (this.path && this.path.includes(" ")) {
this.path = this.path.replace(new RegExp(" {3}", "g"), " + ");
}

this.format = searchParams.get('format') || null;
this.viewMode = searchParams.get('mode') || null;

Expand Down
Loading

0 comments on commit 5105b14

Please sign in to comment.