Skip to content

Redirect from child product to configurable parent is broken #4359

@juho-jaakkola

Description

@juho-jaakkola

Current behavior

The configuration file has the entry:

"products": {
    "preventConfigurableChildrenDirectAccess": true,

Documented here: https://docs.vuestorefront.io/guide/basics/configuration.html#products

If this option is set to true (default), Vue Storefront will prevent accessing the simple products assigned with the configurable one. A user will be redirected to the main configurable product in such a case.

However, when I enter the URL of a child, I see the product detail page of the child product.

Expected behavior

I'm expecting to get redirected to the PDP of the parent product.

Repository

https://github.com/DivanteLtd/vue-storefront/tree/v1.11.3/

The related code is here: https://github.com/DivanteLtd/vue-storefront/blob/v1.11.3/core/modules/catalog/store/product/actions.ts#L654-L659

I'm not sure what exactly that part of the code is supposed to be doing.

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 develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • 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 hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: NormalPriority mark - normal priorityQA approved after mergeTesters will add this label after positive check on merged changesbugBug reports

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions