Routing in Angular 7 running in subfolder not working correctly

后端 未结 3 1028
我寻月下人不归
我寻月下人不归 2020-12-19 18:44

We are working on migrating our application to a new Angular version. The old one (Angular.JS) was it\'s own application/repo being served by an .NET Framework 4.5.2 ASP.NET

3条回答
  •  隐瞒了意图╮
    2020-12-19 19:32

    Have you made any modification to your Web.config file? You need to set it up for the base angular app (using the UrlRewrite module) I'd assume it might need a modification for your use case...

    
        
          
            
            
              
              
            
            
          
        
      
    

    My assumption is you will need to add another 'rule' here. Hope this helps!!! (note: the rewrite is supposed to match your ng build base href value)

提交回复
热议问题