Skip to content
This repository was archived by the owner on Jul 27, 2018. It is now read-only.

Support navigateByUrl equivalentΒ #30

@xaralis

Description

@xaralis

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions