Geta / geta-notfoundhandler

The popular NotFound handler for ASP.NET Core and Optimizely, enabling better control over your 404 page in addition to allowing redirects for old URLs that no longer works.
Apache License 2.0
20 stars 16 forks source link

Set permanent as default redirect configuration #118

Closed KerckhofEmiel closed 2 weeks ago

KerckhofEmiel commented 8 months ago

I was wondering if it is possible to configure somewhere that the default redirect type configuration should be permanent instead of temporary?

image

@marisks @valdisiljuconoks @kaspars-ozols @jevgenijsp @ellinge

ellinge commented 8 months ago

No it’s set as selected in template: https://github.com/Geta/geta-notfoundhandler/blob/2ed3c5f746d5497fd9f0a6432aa453935e2b8a9e/src/Geta.NotFoundHandler.Admin/Areas/GetaNotFoundHandlerAdmin/Pages/Index.cshtml#L48

ArildHenrichsen commented 3 months ago

I agree that it would be beneficial to be able to specify default redirect type in configuration. Changing the HTML template is not good as it would break potential future package upgrades.