Policies have broken link: 500 error
danieldanielecki opened this issue · comments
✅ Daniel Danielecki commented
Policies from Settings
-> Policies
(https://admin.shopify.com/store/123456/settings/legal) aren't correctly displayed.
I tried to have them included in my footer, but those are redirecting to pages with 500
error code:
- https://shop.ditectrev.com/policies/contact-information
- https://shop.ditectrev.com/policies/legal-notice
- https://shop.ditectrev.com/policies/privacy-policy
- https://shop.ditectrev.com/policies/refund-policy
- https://shop.ditectrev.com/policies/shipping-policy
- https://shop.ditectrev.com/policies/terms-of-service
Lee Robinson commented
This is because the "CMS" like pages, e.g. https://demo.vercel.store/shipping-return-policy, are at the root path.
You can view the code here: https://github.com/vercel/commerce/blob/main/app/%5Bpage%5D/page.tsx
If you would like to change that path, you could change to app/policies/[page]/page.tsx
.
✅ Daniel Danielecki commented
@vitustockholm, what do you think about the answer? You know more about all the bugs this repo has, esp. around routing.