From 1a9b67cfc8878be6a1cb586e4d411a27f66e944e Mon Sep 17 00:00:00 2001 From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com> Date: Thu, 16 Jan 2025 16:14:37 -0500 Subject: [PATCH] fix(ios): fix URL resolution when external frameworks are loaded --- ios/Capacitor/Capacitor/Router.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Capacitor/Capacitor/Router.swift b/ios/Capacitor/Capacitor/Router.swift index 68328f8cd..8d5b43722 100644 --- a/ios/Capacitor/Capacitor/Router.swift +++ b/ios/Capacitor/Capacitor/Router.swift @@ -17,7 +17,7 @@ public struct CapacitorRouter: Router { public init() {} public var basePath: String = "" public func route(for path: String) -> String { - let pathUrl = URL(fileURLWithPath: path) + let pathUrl = URL(fileURLWithPath: basePath + path) // If there's no path extension it also means the path is empty or a SPA route if pathUrl.pathExtension.isEmpty {