Skip to content

Commit

Permalink
web server: fix for angular paths /dashboard/ and /setupwizard/
Browse files Browse the repository at this point in the history
Symptom: 404 error on these paths.
Fix Set up redirect for these paths and remove the Redirect
for settings, which is no longer used.

.
  • Loading branch information
bennettpeter committed Jun 2, 2023
1 parent 26eeb5a commit 8f966c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythbase/http/mythhttprewrite.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8f966c3

Please sign in to comment.