feat(privacy-policy): Add privacy policy related text and links

This commit is contained in:
web@ppanel
2025-02-23 20:54:56 +07:00
parent 87381da1e5
commit baa68f03e3
60 changed files with 243 additions and 1 deletions
+4 -1
View File
@@ -50,7 +50,10 @@ export function Logout() {
if (!isBrowser()) return;
cookies.remove('Authorization');
const pathname = location.pathname;
if (!['', '/', '/auth', '/tos'].includes(pathname) && !pathname.startsWith('/oauth/')) {
if (
!['', '/', '/auth', '/tos', '/privacy-policy'].includes(pathname) &&
!pathname.startsWith('/oauth/')
) {
setRedirectUrl(location.pathname);
location.href = `/auth`;
}