Skip to content

Commit 3839de7

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#7831 from @daniellacosse
2 parents 4c7c126 + 1a9b67c commit 3839de7

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)