-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
APIAPI!API!ASP.NET CoreRelated to ASP.NET CoreRelated to ASP.NET CoreServerSever!Sever!bugSomething isn't workingSomething isn't working
Description
Redirect, RedirectResult, and RedirectToAction all do not work as expected. There is no explanation as to why these are failing. There is nothing in the terminal, in dev tools, in the editor, in the docs, or stack overflow that talks about this. So I'm not sure where the breaking changes are.
Another viable solution would be to implement a JS async script within the C# code itself. This is long winding and not part of the original scope, so this is not a priority at the moment. But it will be hugely beneficial and convenient if redirects do happen.
For more information, check out,
- Microsoft.AspNetCore.NodeServices
- Calling JavaScript inside an ASP.NET Core 2.2 application, this is an outdated tutorial, but the docs mentioned in the first link show that the latest
NuGETpackage was pushed19days ago. So the package remains, and this tutorial can serve as a possible guide. - INodeServices Interface, but this page says to use
Microsoft.AspNetCore.SpaServices.Extensionsinstead. No such doc page is available for this - Where is the documentation for Microsoft.AspNetCore.SpaServices.Extensions?, this stack overflow thread has some comments that might be helpful.
- Use JavaScript Services to Create Single Page Applications in ASP.NET Core, I haven't assessed how valuable or related this is right now. Going off by the title, it seems nice to know.
- Microsoft.AspNetCore.SpaServices.Extensions 5.0.4, the
NuGETpage forSpaServices.Extensionsis this
Metadata
Metadata
Assignees
Labels
APIAPI!API!ASP.NET CoreRelated to ASP.NET CoreRelated to ASP.NET CoreServerSever!Sever!bugSomething isn't workingSomething isn't working