-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1212 from podverse/develop
Release v4.15.0
- Loading branch information
Showing
7 changed files
with
256 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
This page exists because iOS React Native does not handle a URL with | ||
# symbols without converting them to %23, which is invalid for the Matrix space link. | ||
*/ | ||
|
||
import { GetServerSideProps } from 'next' | ||
import { useTranslation } from 'next-i18next' | ||
import { Page } from '~/lib/utility/page' | ||
import { PV } from '~/resources' | ||
import { Meta } from '~/components' | ||
|
||
type ServerProps = Page | ||
|
||
export default function AlbumRedirect(props: ServerProps) { | ||
/* Initialize */ | ||
|
||
const { t } = useTranslation() | ||
|
||
/* Meta Tags */ | ||
|
||
const meta = { | ||
currentUrl: `${PV.Config.WEB_BASE_URL}${PV.RoutePaths.web.album}`, | ||
description: t('pages-about_Description'), | ||
title: t('pages-about_Title') | ||
} | ||
|
||
return ( | ||
<> | ||
<Meta | ||
description={meta.description} | ||
ogDescription={meta.description} | ||
ogTitle={meta.title} | ||
ogType='website' | ||
ogUrl={meta.currentUrl} | ||
robotsNoIndex={false} | ||
title={meta.title} | ||
twitterDescription={meta.description} | ||
twitterTitle={meta.title} | ||
/> | ||
<p>redirecting...</p> | ||
</> | ||
) | ||
} | ||
|
||
/* Server-Side Logic */ | ||
|
||
export const getServerSideProps: GetServerSideProps = async (ctx) => { | ||
const { params } = ctx | ||
const { albumId } = params | ||
|
||
return { | ||
redirect: { | ||
destination: `${PV.Config.WEB_BASE_URL}${PV.RoutePaths.web.podcast}/${albumId}`, | ||
permanent: false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
This page exists because iOS React Native does not handle a URL with | ||
# symbols without converting them to %23, which is invalid for the Matrix space link. | ||
*/ | ||
|
||
import { GetServerSideProps } from 'next' | ||
import { useTranslation } from 'next-i18next' | ||
import { Page } from '~/lib/utility/page' | ||
import { PV } from '~/resources' | ||
import { Meta } from '~/components' | ||
|
||
type ServerProps = Page | ||
|
||
export default function TrackRedirect(props: ServerProps) { | ||
/* Initialize */ | ||
|
||
const { t } = useTranslation() | ||
|
||
/* Meta Tags */ | ||
|
||
const meta = { | ||
currentUrl: `${PV.Config.WEB_BASE_URL}${PV.RoutePaths.web.track}`, | ||
description: t('pages-about_Description'), | ||
title: t('pages-about_Title') | ||
} | ||
|
||
return ( | ||
<> | ||
<Meta | ||
description={meta.description} | ||
ogDescription={meta.description} | ||
ogTitle={meta.title} | ||
ogType='website' | ||
ogUrl={meta.currentUrl} | ||
robotsNoIndex={false} | ||
title={meta.title} | ||
twitterDescription={meta.description} | ||
twitterTitle={meta.title} | ||
/> | ||
<p>redirecting...</p> | ||
</> | ||
) | ||
} | ||
|
||
/* Server-Side Logic */ | ||
|
||
export const getServerSideProps: GetServerSideProps = async (ctx) => { | ||
const { params } = ctx | ||
const { trackId } = params | ||
|
||
return { | ||
redirect: { | ||
destination: `${PV.Config.WEB_BASE_URL}${PV.RoutePaths.web.episode}/${trackId}`, | ||
permanent: false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.