mspnp / AzureNamingTool

The Azure Naming Tool is a .NET 8 Blazor application, with a RESTful API. The UI consists of several pages to allow the configuration and generation of Azure Resource names. The API provides a programmatic interface for the functionality.
https://aka.ms/azurenamingtool
MIT License
346 stars 721 forks source link

Navigation links should be relative to application path #72

Closed BryanSoltis closed 6 months ago

BryanSoltis commented 8 months ago

Tool version All

Describe the bug Navigation links are hard-coded to "/". They should be updated to be relative to where the application is running.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Installation Method A description of the installation environment for the Azure Naming Tool.

Additional context Add any other context about the problem here.

BryanSoltis commented 6 months ago

I added a change to the code that I believe resolves this, however, the official recommendation from the .NET team is to NOT run Blazor apps as a virtual directory in IIS.

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1#virtual-directories

"IIS Virtual Directories aren't supported with ASP.NET Core apps. An app can be hosted as a sub-application."

Marking this issue as CLOSED.

-Bryan