AzUrlShortener icon indicating copy to clipboard operation
AzUrlShortener copied to clipboard

Redirect to Default when no Vanity path is provided

Open asthalonworks opened this issue 2 years ago • 2 comments

Currently when you visit the root domain (e.g. just the root domain https://shortenertool-12345-fa.azurewebsites.net), you are presented with the "Your Functions App is Up and Running" page.

The result of no path provided should be the same as a path provided that's not in the table - redirect to the default. When using a custom domain this can be achieved with a redirect rule, but it's not preferable.

This would help to obfuscate the underlying platform which is beneficial from a security standpoint.

Thanks!

asthalonworks avatar Feb 17 '23 15:02 asthalonworks

@asthalonworks If your goal is only to hide the fact that you are using an Azure Functions App, you can disable the homepage. https://learn.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azurewebjobsdisablehomepage

nmartin5 avatar Mar 30 '23 17:03 nmartin5

+1 this would be a very useful feature for the URL shortener's usability.

Looks like there is already a linked PR that implements it?

PatSunter avatar Feb 05 '24 01:02 PatSunter