My URLs on an AngularJS project have changed from localhost:3000/admin#/ to localhost:3000/admin#!/ since the last time I worked on my project...
Nothing found on the web, does someone know what this is ?
My URLs on an AngularJS project have changed from localhost:3000/admin#/ to localhost:3000/admin#!/ since the last time I worked on my project...
Nothing found on the web, does someone know what this is ?
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                In Angular 1.6.0, the default hashPrefix has been changed to !.
See the related commit and the changelog entry.
                        
                            
                        
                        
                            On
                            
                            
                                                    
                    
                In my situation, angular 1.6 added a hashtag in this form: http://localhost:52245/#/callback#code=BD55C7FD4F129A9CAC1506E225EF9149
But I needed it in this form: http://localhost:52245/callback#code=BD55C7FD4F129A9CAC1506E225EF9149
I spent some days until find the solution. So added this configuration in the frondEnd web.config, in <system.webServer> section:
    <rewrite>
        <rules>
            <rule name="angular cli routes" stopProcessing="true">
                <match url=".*"/>
                <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                    <add input="{REQUEST_URI}" pattern="^/(api)" negate="true"/>
                </conditions>
                <action type="Rewrite" url="/"/>
            </rule>
        </rules>
    </rewrite>
After that, all work ok
It is new from AngularJS 1.6, which added a new hash prefix.
Source here for more information.
If you want to remove this prefix, add this code to your config: