🐛 Fix api redirect
This commit is contained in:
@ -35,7 +35,7 @@ public class ClientTypeMiddleware(RequestDelegate next)
|
|||||||
|
|
||||||
if (!isWebPage && !context.Request.Path.StartsWithSegments("/api"))
|
if (!isWebPage && !context.Request.Path.StartsWithSegments("/api"))
|
||||||
context.Response.Redirect(
|
context.Response.Redirect(
|
||||||
"/api" + context.Request.Path.Value,
|
$"/api{context.Request.Path.Value}{context.Request.QueryString.Value}",
|
||||||
permanent: false
|
permanent: false
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user