Skip to content

Commit

Permalink
https://github.com/haxtheweb/issues/issues/2105
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Aug 4, 2024
1 parent a5315fd commit a478dbb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions elements/haxcms-elements/lib/core/haxcms-site-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ class HAXCMSSiteRouter extends HTMLElement {
null,
e.detail.location.search.replace("?p=/", "").split("&")[0],
);
e.detail.location.search = e.detail.location.search.replace("?p=/", "").split("&")[0];
store.location = e.detail.location;
} else {
store.location = e.detail.location;
}
Expand Down
1 change: 1 addition & 0 deletions elements/haxcms-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"dependencies": {
"@github/time-elements": "3.1.4",
"@haxtheweb/anchor-behaviors": "^9.0.3",
"@haxtheweb/lrndesign-sidenote": "^9.0.1",
"@haxtheweb/app-hax": "^9.0.5",
"@haxtheweb/beaker-broker": "^9.0.3",
"@haxtheweb/citation-element": "^9.0.3",
Expand Down
5 changes: 5 additions & 0 deletions elements/haxor-slevin/haxor-slevin.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ class HaxorSlevin extends HAXCMSThemeParts(
import(
"@haxtheweb/haxcms-elements/lib/ui-components/layout/site-modal.js"
);
// haxor is a bit odd bc it has this anti-pattern currently
setTimeout(() => {
let location = toJS(store.location);
this._noticeLocationChange(location);
}, 1000);
}
updated(changedProperties) {
if (super.updated) {
Expand Down
5 changes: 5 additions & 0 deletions elements/haxor-slevin/src/haxor-slevin.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ class HaxorSlevin extends HAXCMSThemeParts(
import(
"@haxtheweb/haxcms-elements/lib/ui-components/layout/site-modal.js"
);
// haxor is a bit odd bc it has this anti-pattern currently
setTimeout(() => {
let location = toJS(store.location);
this._noticeLocationChange(location);
}, 1000);
}
updated(changedProperties) {
if (super.updated) {
Expand Down
1 change: 0 additions & 1 deletion elements/q-r/lib/q-r.haxProperties.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"canScale": true,

"canEditSource": true,
"gizmo": {
"title": "QR Code",
Expand Down

0 comments on commit a478dbb

Please sign in to comment.