From 8f966c30b8c30bd137d958c8770d9f7c1de482a2 Mon Sep 17 00:00:00 2001 From: Peter Bennett Date: Fri, 2 Jun 2023 16:23:14 -0400 Subject: [PATCH] web server: fix for angular paths /dashboard/ and /setupwizard/ Symptom: 404 error on these paths. Fix Set up redirect for these paths and remove the Redirect for settings, which is no longer used. . --- mythtv/libs/libmythbase/http/mythhttprewrite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mythtv/libs/libmythbase/http/mythhttprewrite.cpp b/mythtv/libs/libmythbase/http/mythhttprewrite.cpp index 74e3f8258cf..033d1007b40 100644 --- a/mythtv/libs/libmythbase/http/mythhttprewrite.cpp +++ b/mythtv/libs/libmythbase/http/mythhttprewrite.cpp @@ -55,7 +55,8 @@ HTTPResponse MythHTTPRewrite::RewriteToSPA(const HTTPRequest2& Request, const QS LOG(VB_HTTP, LOG_INFO, QString("Rewriting request to web app '%1'").arg(File)); if (!File.isEmpty() - && (Request->m_path.isEmpty() || Request->m_path == "/" || Request->m_path == "/settings/")) + && (Request->m_path.isEmpty() || Request->m_path == "/" + || Request->m_path == "/dashboard/" || Request->m_path == "/setupwizard/")) { Request->m_fileName = File; Request->m_status = HTTPOK;