Skip to content
New issue

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

Policies have broken link: 500 error #1295

Closed
danieldanielecki opened this issue Feb 7, 2024 · 3 comments
Closed

Policies have broken link: 500 error #1295

danieldanielecki opened this issue Feb 7, 2024 · 3 comments

Comments

@danieldanielecki
Copy link

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:

Screenshot 2024-02-07 at 14 34 06 Screenshot 2024-02-07 at 14 36 28 Screenshot 2024-02-07 at 14 36 45
@leerob
Copy link
Member

leerob commented Mar 31, 2024

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.

@leerob leerob closed this as completed Mar 31, 2024
@danieldanielecki
Copy link
Author

@vitustockholm, what do you think about the answer? You know more about all the bugs this repo has, esp. around routing.

@danieldanielecki
Copy link
Author

Those are all working, but on the checkout page. Would be good to mention it somewhere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants