Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down