You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2018. It is now read-only.
There are times when go() is not sufficient as it uses navigate method internally. For example, when passing redirection links with URL params inside, internal use of navigate doesn't work well and params are not parsed properly. This can be solved by using navigateByUrl.
E.g. passing continue link with parameters: /candidates/57f39a88720e1a181134ae25;back=%2Fcandidates
This doesn't work well when doing go('/candidates/57f39a88720e1a181134ae25;back=%2Fcandidates'). The back parameter is not parsed properly and angular2 thinks it's actually the :id parameter in route definition (/candidates/:id). Instead, I have to use router.navigateByUrl('/57f39a88720e1a181134ae25;back=%2Fcandidates') which ensures the parsing is being done.