I am creating a new Angular 15 application and for now its going to have only one page and that will be the landing page also. How can I restrict or redirect to the default landing page always when user attempts to launch with different path name?
For example:
- If user attempts to load https://localhost:6150/hello i need to redirect to https://localhost:6150/landingpage.
- If user attempts to load https://localhost:6150/ i need to redirect to https://localhost:6150/landingpage.
Redirection should happen only once in any of the above scenario.