@riosst100/pwa-marketplace 3.2.0 → 3.2.1
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
|
@@ -94,7 +94,7 @@ const Adapter = props => {
|
|
|
94
94
|
|
|
95
95
|
useEffect(() => {
|
|
96
96
|
if (!websiteCodeInUrl) {
|
|
97
|
-
history.replace(location.pathname + location.search)
|
|
97
|
+
// history.replace(location.pathname + location.search)
|
|
98
98
|
} else if (websiteCodeInUrl && websiteCodeInUrl !== currentWebsiteCode) {
|
|
99
99
|
const storeCodeInUrl = websiteStores[websiteCodeInUrl];
|
|
100
100
|
|
|
@@ -144,7 +144,7 @@ const Adapter = props => {
|
|
|
144
144
|
|
|
145
145
|
// We're required to reload the page as the basename doesn't
|
|
146
146
|
// change entirely without a full page reload.
|
|
147
|
-
history.go(0);
|
|
147
|
+
// history.go(0);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
if (!websiteCodeInUrl && getWebsiteByUserIp) {
|
|
@@ -45,7 +45,7 @@ const StoreCodeRoute = () => {
|
|
|
45
45
|
// the storage value and refresh so that we start using the new code.
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
if (!websiteCodeInUrl) {
|
|
48
|
-
|
|
48
|
+
history.replace(location.pathname + location.search)
|
|
49
49
|
} else if (websiteCodeInUrl && websiteCodeInUrl !== currentWebsiteCode) {
|
|
50
50
|
const storeCodeInUrl = websiteStores[websiteCodeInUrl];
|
|
51
51
|
|