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

[Question]: Does Click behaviour handle hash routing? #1048

Open
rhurlbatt opened this issue Jun 29, 2023 · 1 comment
Open

[Question]: Does Click behaviour handle hash routing? #1048

rhurlbatt opened this issue Jun 29, 2023 · 1 comment

Comments

@rhurlbatt
Copy link

rhurlbatt commented Jun 29, 2023

How can we help?

I have a web app that is saved to the homescreen of an Android and ios device. The click url is set to a url with a hash (https://app.example.com/#section1). I have set the click behaviour to be "Origin Navigate".

The problem is that the navigation doesn't seem to work. Is this be cause of hash routing?

How do I get the notification and browser to recognise that the notification url https://app.example.com/#section1 is not equal to https://app.example.com/#listing4 and navigate accordingly (without forcing it to reload the page)?

@jkasten2
Copy link
Member

@rhurlbatt I don't believe the Web SDK currently supports navigating to a hash / anchor currently. We will mark this as a feature request.

In the meantime you can setup the OneSignal notification click listener to handle this with your own code however.

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

No branches or pull requests

2 participants