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

Allow passing extra params to native redirect URL #411

Merged
merged 1 commit into from Dec 23, 2022

Conversation

kevinmcconnell
Copy link
Contributor

When using the various redirect helpers, we allow passing the :notice option to the native redirection URL as a query param. However in some cases, apps may need to pass additional query parameters as well.

This adds an optional :native_params option, which can be a hash of query params to add to the URL when redirecting on native. This option is ignored on other platforms.

We also drop the special-case handling of :native_notice here, as that can now be more consistently handled inside :native_params.

When using the various redirect helpers, we allow passing the `:notice`
option to the native redirection URL as a query param. However in some
cases, apps may need to pass additional query parameters as well.

This adds an optional `:native_params` option, which can be a hash of
query params to add to the URL when redirecting on native. This option
is ignored on other platforms.

We also drop the special-case handling of `:native_notice` here, as that
can now be more consistently handled inside `:native_params`.
@kevinmcconnell kevinmcconnell force-pushed the allow-additional-params-for-native-redirect branch from 6cf1ed6 to 6e35878 Compare December 13, 2022 17:01
Copy link

@jayohms jayohms left a comment

Choose a reason for hiding this comment

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

Lovely, thank you 👏

@kevinmcconnell kevinmcconnell merged commit 627a0cd into main Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants