mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-14 05:21:12 +00:00
Fix url router
This commit is contained in:
parent
b4757621f2
commit
7222d530dd
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ public enum SheetDestination: Identifiable {
|
|||
{
|
||||
navigate(to: .hashTag(tag: tag, account: nil))
|
||||
return .handled
|
||||
} else if url.lastPathComponent.first == "@", let host = url.host {
|
||||
} else if url.lastPathComponent.first == "@",
|
||||
let host = url.host,
|
||||
!host.hasPrefix("www") {
|
||||
let acct = "\(url.lastPathComponent)@\(host)"
|
||||
Task {
|
||||
await navigateToAccountFrom(acct: acct, url: url)
|
||||
|
|
Loading…
Reference in a new issue