Don't strip query parameters on in-app navigation (#9948)
This commit is contained in:
@@ -194,12 +194,7 @@ export function convertBskyAppUrlIfNeeded(url: string): string {
|
|||||||
return startUriToStarterPackUri(urlp.pathname)
|
return startUriToStarterPackUri(urlp.pathname)
|
||||||
}
|
}
|
||||||
|
|
||||||
// special-case search links
|
return urlp.pathname + urlp.search
|
||||||
if (urlp.pathname === '/search') {
|
|
||||||
return `/search?q=${urlp.searchParams.get('q')}`
|
|
||||||
}
|
|
||||||
|
|
||||||
return urlp.pathname
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Unexpected error in convertBskyAppUrlIfNeeded()', e)
|
console.error('Unexpected error in convertBskyAppUrlIfNeeded()', e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user