We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I create a category item with a internal link. The link in the pwa that returns is always '/' when you use getCategoryUrl.
Latest stable (generated by CLI)
No response
- OS: Docker - Node: 16.18 - Shopware API: 6 - Shopware PWA version: 1.5.3
// this code always returns '/' when ever you use a internal link var getCategoryUrl = (category) => { if (!category) return "/"; switch (category.type) { case "link": return getTranslatedProperty(category, "externalLink") || "/"; case "folder": return "/"; default: return category.seoUrls?.[0]?.seoPathInfo ? `/${category.seoUrls[0].seoPathInfo}` : category.id ? `/navigation/${category.id}` : "/"; } }; var isLinkCategory = (category) => category?.type === "link";
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
When I create a category item with a internal link.
The link in the pwa that returns is always '/' when you use getCategoryUrl.
Steps To Reproduce
Is there an existing issue for this?
Version
Latest stable (generated by CLI)
Which element is affected?
No response
Environment
Relevant log output
The text was updated successfully, but these errors were encountered: