profenpoche commented on issue #1520: URL: https://github.com/apache/cordova-android/issues/1520#issuecomment-1332404678
Thanks @breautek I still don't understand why this was working before, but here is the solution we implemented with angular/ionic : 1. reload https://localhost with current url added to searchParams ``` const urlWithParams = new URL("https://localhost/"); urlWithParams.searchParams.append("navigate", this.router.url); navigator["app"].loadUrl(urlWithParams.href); ``` 2. on early app loading (app.component.ts) detect parameter and redirect to url ``` if (searchParams.navigate) { this.router.navigateByUrl(searchParams.navigate); } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org