Skip to content

Commit 0cd91d3

Browse files
committed
fixup pat-structure: No need to set the base URL. Using history.pushState is enough to change the URL and to get pat-base-url active.
1 parent 7817f4a commit 0cd91d3

File tree

1 file changed

+0
-4
lines changed
  • src/pat/structure/js/views

1 file changed

+0
-4
lines changed

src/pat/structure/js/views/app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ export default BaseView.extend({
188188
// specifying a path.
189189
path = "";
190190
}
191-
if (url && path !== "") {
192-
document.body.dataset.baseUrl = url;
193-
}
194191
$("body").trigger("structure-url-changed", [path]);
195192

196193
this.loading.hide();
@@ -229,7 +226,6 @@ export default BaseView.extend({
229226
path = "/";
230227
}
231228
this.setCurrentPath(path);
232-
document.body.dataset.baseUrl = `${document.body.dataset.portalUrl}${path}`;
233229
$("body").trigger("structure-url-changed", [path]);
234230
// since this next call causes state to be pushed...
235231
this.doNotPushState = true;

0 commit comments

Comments
 (0)