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

Update to URI encoding of Kind #12

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

kadoshita
Copy link
Contributor

If Kind contains a slash, it does not match the routing configuration and no data will be displayed.
To fix this problem, I have changed the Kind in the URL to be URI-encoded.

remko-bw

This comment was marked as duplicate.

Repository owner deleted a comment from remko-bw Jan 4, 2024
Copy link
Owner

@remko remko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just a small request inline.

src/KindPage.tsx Outdated
@@ -209,7 +214,8 @@ function KindPage({
setCreateEntityDialogIsOpen(false);
}, []);

useDocumentTitle(kind);
const decodedKind = decodeURIComponent(kind);
useDocumentTitle(decodedKind);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the decodeURIComponent to the call site (in DatastoreAdmin?). Then the changes in this component shouldn't be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review!
I have moved it to DatastoreAdmin.

@kadoshita kadoshita requested a review from remko January 4, 2024 07:58
@remko remko merged commit c334e79 into remko:master Jan 4, 2024
@remko
Copy link
Owner

remko commented Jan 4, 2024

Thank you!

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.

3 participants