@designcrowd/fe-shared-lib 1.2.20-rr-test → 1.2.20-rr-test-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.20-rr-test",
3
+ "version": "1.2.20-rr-test-3",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -135,8 +135,9 @@ export default {
135
135
  );
136
136
  if (this.isUserAuthenticated) {
137
137
  const { checkoutUrl } = domain;
138
- checkoutUrl.searchParams.set('locale', this.currentLocale);
139
- window.location.href = checkoutUrl;
138
+ const url = new URL(checkoutUrl, window.location.origin);
139
+ url.searchParams.set('locale', this.getCurrentLocale());
140
+ window.location.href = url.toString();
140
141
  }
141
142
  },
142
143
  getPrice(domain) {