(pathname: string)
| 302 | }; |
| 303 | |
| 304 | export const isSettingsPath = (pathname: string): boolean => { |
| 305 | const path = withoutLayoutVariantPrefix(pathname ?? ''); |
| 306 | return ( |
| 307 | path.startsWith('/settings') || |
| 308 | path.startsWith('/notifications/settings') || |
| 309 | (path.startsWith('/feeds/') && path.endsWith('/edit')) |
| 310 | ); |
| 311 | }; |
| 312 | |
| 313 | // Back past every entry of the current level: the nearest earlier page |
| 314 | // that is not one of them, in one history move so nothing is left to |
no test coverage detected