-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
questionIf you are not sure how sth works or want discuss sometingIf you are not sure how sth works or want discuss someting
Milestone
Description
Current behavior
In VSF 1.10 I was able to do this:
In src/modules/index.ts:
import { extendModule } from '@vue-storefront/core/lib/module'
import { urlExtend } from './my-module'
extendModule(urlExtend)
and in my-module:
const extendUrlVuex = {
actions: {
async mappingFallback ({ dispatch }, payload: { url: string, params: any}) {
// Custom check, whether the URL path matches a custom content type.
return {
name: 'foo',
params: {
slug: 'foo'
}
}
}
}
}
export const urlExtend = {
key: 'url',
store: { modules: [{ key: 'url', module: extendUrlVuex }] },
}
As documented here: https://docs.vuestorefront.io/guide/basics/url.html#how-to-customize-the-mapping-mechanism
However, it seems in 1.11.0 the custom mappingFallback does not get called anymore.
Expected behavior
I should be able to override the default mappingFallback action from my module.
Repository
https://github.com/DivanteLtd/vue-storefront/tree/v1.11.0-rc.2
Can you handle fixing this bug by yourself?
- YES
- NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from
developbranch and create Pull Request2. Feature / Improvementback todevelop. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
releasebranch and create Pull Request3. Stabilisation fixback torelease. - This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from
hotfixormasterbranch and create Pull Request4. Hotfixback tohotfix.
Metadata
Metadata
Assignees
Labels
questionIf you are not sure how sth works or want discuss sometingIf you are not sure how sth works or want discuss someting