iOS automatically fill in SMS with browserHistory

I have a web app with browserHistory enabled.

http://domain#page/registration

In this page, user fill form and submit to next page with route /registration/otp

iOS has feature to automatically fill from SMS

image

If user click it, my app going back to previous page with route like this

https://domain?otp=269640#page/registration

Any idea to handle this?

iOS will fill the form field with the numerical value of the OTP. It probably triggers the default ‘submit’ command of the form after that, knowing that there are probably only two form elements within that view: A numerical input for the number, and a submit button (‘Confirm’ or ‘Next’ or similar).
So I’d say you should focus your attention on the submit button of the form (check if you even have a button with a Submit command) and see what the target destination is.