When calling initImplicitFlow
, you can pass an optional state which could be the requested url:
this.oauthService.initImplicitFlow('http://www.myurl.com/x/y/z');
After login succeeded, you can read this state:
this.oauthService.tryLogin({
onTokenReceived: (info) => {
console.debug('state', info.state);
}
})