0

I have a situation where the user is to be routed to a directory structure path within angular routing mechanism. For example: The host is abc.com. The angular routing will work on this host. Then I have defined a path in angular routing with pattern matching such as "**" which matches every pattern if none is found. But I have a situation where I need to redirect to "abc.com/safari". The angular routing is blocking this and redirecting me to the "**" path and that component.

Have researched on stack overflow and found this post. I am trying to implement these options, but to no avail. Can someone please help!!

How can I activate the abc.com/safari route without changing my host and angular routing blocking it?

  • 2
    Have you tried putting `'*'` entry to the bottom of your routes? – Bartu Jul 11 '19 at 13:55
  • I'm not sure if I understood your question correctly, but if you want to navigate only between your host, then it's very important in which position you put your routes. Try to put that routes in different order. Would be also nice if you will insert some source code to properly analyse your issue. – Patryk Panek Jul 11 '19 at 13:58
  • @PatrykPanek How will the ordering of the routes matter when we have not defined "safari" in our route paths, hence "safari" will not match any routes except for "\**". – vishavdeep Singh Jul 11 '19 at 14:05
  • @Bartu I am looking into it and will update you. – vishavdeep Singh Jul 11 '19 at 14:06

0 Answers0