Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: exempt well-known paths from being handled (#2505)

authored by

Mary and committed by
GitHub
2be27330 ddca849e

+8 -1
+8 -1
src/view/com/util/Link.tsx
··· 306 306 ) 307 307 }) 308 308 309 + const EXEMPT_PATHS = ['/robots.txt', '/security.txt', '/.well-known/'] 310 + 309 311 // NOTE 310 312 // we can't use the onPress given by useLinkProps because it will 311 313 // match most paths to the HomeTab routes while we actually want to ··· 350 352 351 353 if (shouldHandle) { 352 354 href = convertBskyAppUrlIfNeeded(href) 353 - if (newTab || href.startsWith('http') || href.startsWith('mailto')) { 355 + if ( 356 + newTab || 357 + href.startsWith('http') || 358 + href.startsWith('mailto') || 359 + EXEMPT_PATHS.some(path => href.startsWith(path)) 360 + ) { 354 361 openLink(href) 355 362 } else { 356 363 closeModal() // close any active modals