-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
next 9.5.2 Router not working on ionic webview #16456
Comments
Feel free to investigate and fix / post back here with the investigation. |
probably because of
you don't see any warnings in development? |
I think you found the root of the problem. 👍🏻 Unfortunately, Maybe some way to export development static content, Also, Also, Thanks |
Happy to see that this issue was reported, I found the same problem (and narrowed it down On my case this was completely broken our app (NWJS), since that is served with the @timneutkens would it be possible to extend this function ( I don't really know how to get around this - but the issue is serious, currently we can't ship any updates to our production app 👎 |
The right solution is probably to also compare the protocol with (protocol !== 'http:' && protocol !== 'https:' && protocol !== DUMMY_BASE.protocol) This should detect a url with the same scheme as the page it is rendered on as relative. It makes sense because the fact that the browser you are using is rendering the app as a webpage implies that the browser is capable of handling the custom scheme. Not quite sure how we can test this behavior though since the browsers that the next.js tests run on only handle the http and https scheme as webpages |
Added support for protocols other than http and https Fixes vercel#16456
Added support for protocols other than http and https Fixes vercel#16456
- Added support for protocols other than http and https - Added test case Fixes vercel#16456, vercel#16595
- Added support for protocols other than http and https - Added unit test - Added integration test Fixes vercel#16456 Fixes vercel#16595
- Added support for protocols other than http and https - Added unit test - Added integration test Fixes vercel#16456 Fixes vercel#16595
- Added support for protocols other than http and https - Added unit test - Added integration test Fixes vercel#16456 Fixes vercel#16595
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
When using v9.5.2 on ionic webview,
next/router
not working at all,Router.push('/login')
<Link href="/login">
No error message
No response to click
The ionic webview is using
ionic://localhost/
,maybe v9.5.2 unable to working on
ionic://localhost/
.To Reproduce
I hope the description enough to explain where are the problem,
It take time to create a demo repo,
I will create it if must.
Expected behavior
Universal links
Using
Router.push('/login')
to redirect,Scan url QR code, auto open the app, then nothing happen.
It should redirect.
Link tag
Click on the
<Link>
, then nothing happen.It should redirect.
Screenshots
System information
The text was updated successfully, but these errors were encountered: