deeplinking support for section page routing?
StanleyOned opened this issue · 0 comments
StanleyOned commented
Hello Viacom team,
Is there a way to deep-link to support section page routing with the below implementation using a link URL like this: /dashboard#section-page2
open func match(_ url: URL) -> DeeplinkRoute? {
guard let routeComponents = URLComponents(url: url, resolvingAgainstBaseURL: false) else {
return nil
}
// form the host/path url
let host = routeComponents.host.flatMap({ "/\($0)" }) ?? ""
let path = routeComponents.path //.flatMap({$0}) ?? ""
let routeToMatch = "\(host)\(path)"
let queryParams = routeComponents.queryItems
var urlParams = [URLQueryItem]()