首页 > 解决方案 > How to access the angular application route with parameter from another application

问题描述

I have a requirement where One application will have a link and on the click of that link I need to open a angular application with query parameter in the URL.

something like this https://myapplicationdomain.com/search/12345678

I have a default route which is /search so wherever the application loads it goes to search route and there I am using parameter to search.

this is not working because when I click on the URL its not loading the application with https://myapplicationdomain.com/search/12345678 and says Page not found

What configuration I need to do to make this possible.

标签: angularroutes

解决方案


您需要正确设置您的网络服务器,这样它才能正确地为您的应用程序提供服务。 https://angular.io/guide/deployment#fallback-configuration-examples - 在这里检查一切!希望能帮助到你!


推荐阅读