Javascriptservices: How to disable server side pre-rendering?

Created on 30 May 2017  路  2Comments  路  Source: aspnet/JavaScriptServices

I am using react redux webapp template.

Another web application is doing a server side redirect to my JavaScriptServices webapp with some query parameters. I don't want these parameter to show up on the client side. I was thinking of disabling server side prerendering so that I could process the passed in parameters and rewrite the URL.

Whats the best way to achieve this?

Thanks

Most helpful comment

In addition to asp-prerender-module, I also removed following from _ViewImports.cshtml
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"

All 2 comments

Remove this from Index.cshtml
asp-prerender-module="ClientApp/dist/main-server"

In addition to asp-prerender-module, I also removed following from _ViewImports.cshtml
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

docrinehart picture docrinehart  路  4Comments

ZeekoZhu picture ZeekoZhu  路  3Comments

LovedByTheLord picture LovedByTheLord  路  3Comments

uNkNowN92-git picture uNkNowN92-git  路  3Comments

natemcmaster picture natemcmaster  路  4Comments