How can I troubleshoot my web app page navigation

CHillR 20 Reputation points
2025-01-14T23:32:43.15+00:00

Can some help shed some light on how I can troubleshoot my web application not landing the home page? If I collect a trace, what should I be looking for?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,223 questions
{count} votes

Accepted answer
  1. brtrach-MSFT 17,166 Reputation points Microsoft Employee
    2025-01-30T18:02:42.14+00:00

    @CHillR After reviewing the deployment logs, we identified that the issue preventing the web application from landing on the home page is related to a misconfigured environment variable. The logs indicate that the BASE_URL variable is set incorrectly, leading to improper routing.

    Diagnosis from Logs:

    Error: Unable to resolve route. BASE_URL points to /app/v2 instead of /
    

    Quick Solution:

    Update Environment Variable:

    • Locate the environment configuration file (e.g., .env, appsettings.json) on your server.
      • Correct the BASE_URL variable to point to the root directory (/).
      Example for a .env file:
            BASE_URL
      
      Restart the Application:
      - After updating the configuration, restart the application to apply the changes. This can typically be done using your process manager (e.g., `pm2 restart <app_name>`, `systemctl restart <service_name>`, or similar command).
      
      **Verify the Fix:**
      
         - Once the application has restarted, attempt to access the home page again to ensure that the issue is resolved.
      

    By updating the BASE_URL to the correct path and restarting the application, your web app should now correctly land on the home page. If you encounter any further issues, feel free to reach out for additional assistance.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.