Skip to content

Commit 1a9b67c

Browse files
fix(ios): fix URL resolution when external frameworks are loaded
1 parent 6b14cde commit 1a9b67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Capacitor/Capacitor/Router.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public struct CapacitorRouter: Router {
1717
public init() {}
1818
public var basePath: String = ""
1919
public func route(for path: String) -> String {
20-
let pathUrl = URL(fileURLWithPath: path)
20+
let pathUrl = URL(fileURLWithPath: basePath + path)
2121

2222
// If there's no path extension it also means the path is empty or a SPA route
2323
if pathUrl.pathExtension.isEmpty {

0 commit comments

Comments
 (0)