Member Avatar for lithium112

I have a SPA which uses an AngularJS front end and C# back end. The issue I'm having is when I navigate to the login page, it is using @Html.Partial("_LoginPartial"). The url then becomes .../Account/Login. When I click on say the "About" tab, this uses an AngularJS route which in turn instead of routing me to the About Page, it tacks on the route to the end of the login route like so: .../Account/Login#/about. Would anyone know how I would resolve this? I have spent hours looking into this issue and haven't really found anything as of yet.

As a better security practice, I recommend that your login page is whole and seperate from your SPA so that the user is either anonymous or logged in when the page loads.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.