You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another option is to create a separate theme for a specific storeview. Runtime theme changes are not possible, as themes are compiled in the JS bundles by webpack during the page build process. In that case, you should run separate instances of `vue-storefront` having the proper theme set in the `config/local.json` file.
216
216
217
-
## Localized routes
218
-
219
-
The route switching mechanism by default works on the URL level. Please use the `localizedRoute` mixin:
@@ -316,7 +289,7 @@ import { removeStoreCodeFromRoute } from '@vue-storefront/core/lib/multistore'
316
289
}); // should return '/home`
317
290
```
318
291
319
-
### Update/append a store code to your URL
292
+
### Update/append a storeCode to your URL
320
293
If you need to append or update `storeCode` query parameter in provided URL you can do it by calling `adjustMultistoreApiUrl` function as following example:
It will use `storeCode` query parameter from the `req` to figure out which store to use. To make it work properly you should also configure different stores in your VSF-API's config. Check this example configuration for `de` and `it` store codes:
`appendStoreCode` option of the store view configuration should be set to `true` to display store code as tip above
348
368
:::
349
369
370
+
:::warning
371
+
`localizedRoute` is injected to each Vue's instance so you can access it in your component with `this.localizedRoute`. You could also use it in template without additional imports.
0 commit comments