URL Params are getting dissappeared after login to the application

27 views
Skip to first unread message

Ajit

unread,
Feb 7, 2021, 11:37:24 PM2/7/21
to Angular and AngularJS discussion
Hi All,

We have a requirement to click on a link or copy the link and open in another window in the application which will redirect to the same application with some parameters to open a specific page.

When clicking on that link it will ask to login if the user did not logged in (if the user copy the url and oopen in a different window).
After login all the url parameters are not accessable and it is dissappering.

Is it possible to the URL parameters after login?

If yes could any one please help me with some sample code on how to do this. 


Thanks,
Ajit

Ajit

unread,
Feb 10, 2021, 6:15:59 PM2/10/21
to Angular and AngularJS discussion
Anyone have idea on hot do this? Reposting my previous post.

We have a requirement to click on a link or copy the link and open in another window in the application which will redirect to the same application with some parameters to open a specific page of the application.

When clicking on that link it will ask to login if the user did not logged in (e.g. when user copy the url and open in a different window).
After login all the url parameters are not accessable and it is dissappering.

Is it possible to get the URL parameters after login?

If yes could any one please help me with some sample code on how to do this. 


Thanks,
Ajit

Ahmad Shadcome

unread,
Feb 18, 2021, 5:11:10 AM2/18/21
to ang...@googlegroups.com
Hi
if  you use guard you can hold your params and url on it and after come back from login use them again .

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/a5de44ba-6d1e-4281-80c4-4f4558df0fbbn%40googlegroups.com.

ajit dash

unread,
Feb 18, 2021, 12:13:02 PM2/18/21
to ang...@googlegroups.com
Thank you Ahmad.
We will try this and will let you know.

Thanks & Regards,
Ajit Dash

Reply all
Reply to author
Forward
0 new messages