Skip to content

Commit

Permalink
fixes CMS selectors when using CANON_BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Mar 21, 2023
1 parent 1294f39 commit f747662
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cms/src/components/ProfileRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ProfileRenderer extends Component {

const {router} = this.context;
const {location} = router;
const {basename, pathname, query} = location;
const {pathname, query} = location;

const {comparison, selectors} = this.state;

Expand All @@ -195,7 +195,7 @@ class ProfileRenderer extends Component {
else delete newQuery.compare;

const queryString = Object.entries(newQuery).map(([key, val]) => `${key}=${val}`).join("&");
router.replace(`${basename}${pathname}${queryString ? `?${queryString}` : ""}`);
router.replace(`${pathname}${queryString ? `?${queryString}` : ""}`);

}

Expand Down
131 changes: 130 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f747662

Please sign in to comment.