mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-06-05 13:28:50 +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))
|
navigate(to: .hashTag(tag: tag, account: nil))
|
||||||
return .handled
|
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)"
|
let acct = "\(url.lastPathComponent)@\(host)"
|
||||||
Task {
|
Task {
|
||||||
await navigateToAccountFrom(acct: acct, url: url)
|
await navigateToAccountFrom(acct: acct, url: url)
|
||||||
|
|
Loading…
Reference in a new issue