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

Ensure manifest urls don't redirect #118

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

alexmojaki
Copy link
Contributor

@alexmojaki alexmojaki commented Dec 14, 2023

Because the current URLs don't have a trailing slash, they get instantly redirected, e.g. https://gristlabs.github.io/grist-widget/invoices is redirected to https://gristlabs.github.io/grist-widget/invoices/. On GitHub pages this is actually fine, but when the dev server does the equivalent redirect it also removes query params, potentially causing confusing bugs in local development.

This isn't currently a concern since none of these widgets use the query params provided by Grist such as access or timeZone. I mostly just want to highlight this so that future widgets consistently use a redirect-free URL.

This can only be merged safely if we can guarantee that changing a URL in the manifest won't clear widget settings in existing documents (via changing the URL of the widget) and I'm not sure if it's worth the effort to ensure that right now.

The trailing index.html in each URL is probably not needed but I wanted to be consistent with other widgets.

Copy link

netlify bot commented Dec 14, 2023

Deploy Preview for boisterous-sunburst-a5c941 ready!

Name Link
🔨 Latest commit 67e453d
🔍 Latest deploy log https://app.netlify.com/sites/boisterous-sunburst-a5c941/deploys/657b5090d3de690008855d50
😎 Deploy Preview https://deploy-preview-118--boisterous-sunburst-a5c941.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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

Successfully merging this pull request may close these issues.

None yet

1 participant