mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2120 from omnivore-app/fix/update-privacy-links
Update privacy policy
This commit is contained in:
commit
b5f3f18790
2 changed files with 5 additions and 19 deletions
|
|
@ -96,6 +96,11 @@ const moduleExports = {
|
|||
destination: '/.well-known/security.txt',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/privacy',
|
||||
destination: 'https://docs.omnivore.app/about/privacy',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/install/chrome',
|
||||
destination:
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
import { useRouter } from 'next/router'
|
||||
import { PrivacyPolicy } from '../components/templates/PrivacyPolicy'
|
||||
import { SettingsLayout } from '../components/templates/SettingsLayout'
|
||||
|
||||
export default function Privacy(): JSX.Element {
|
||||
const router = useRouter()
|
||||
const appEmbedViewQuery = router.query.isAppEmbedView as string | undefined
|
||||
const isAppEmbedView = (appEmbedViewQuery ?? '').length > 0
|
||||
|
||||
if (isAppEmbedView) {
|
||||
return <PrivacyPolicy />
|
||||
} else {
|
||||
return (
|
||||
<SettingsLayout title="Privacy Policy">
|
||||
<PrivacyPolicy />
|
||||
</SettingsLayout>
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue