From bbaf629907c87161041cf31f25d4f442edbc22b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Fri, 6 Feb 2026 19:59:24 +0100 Subject: [PATCH] fix Cloudflare setup route matching by wrapping routes in Switch The specific route /settings/cloudflare was being matched by the dynamic route /settings/:serviceId despite being defined first. IonRouterOutlet doesn't always respect route ordering for exact matches. Wrapping routes in Switch ensures the specific route is matched before the dynamic one. Co-Authored-By: Claude --- src/App.tsx | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c7db7fe..c8ba338 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,7 +15,7 @@ import { libraryOutline, settingsOutline, } from "ionicons/icons"; -import { Redirect, Route } from "react-router-dom"; +import { Redirect, Route, Switch } from "react-router-dom"; import DiscoverPage from "./pages/Discover/DiscoverPage"; import HomePage from "./pages/Home/HomePage"; @@ -33,24 +33,26 @@ export default function App() { - - - - - - - - - - + + + + + + + + + + + +