From b3b8777a3983a214fb2d731cb3ce73af3a97415d Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sat, 26 Apr 2025 17:49:38 +0200 Subject: [PATCH] fix: old cached articles with cozified links going to an `a` route --- src/consts.ts | 2 +- src/pages/a.astro | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/pages/a.astro diff --git a/src/consts.ts b/src/consts.ts index 348ce55..e5e5451 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -6,4 +6,4 @@ export const SITE_AUTHOR_MASTODON = 'https://social.ayco.io/@ayo' export const SITE_PROJECT_REPO = 'https://github.com/ayoayco/Cozy' export const SITE_DESCRIPTION = 'The Web is Yours.' -export const VERSION = 'Careless-Carrot' +export const VERSION = 'Drooling-Dogs' diff --git a/src/pages/a.astro b/src/pages/a.astro new file mode 100644 index 0000000..2d3213e --- /dev/null +++ b/src/pages/a.astro @@ -0,0 +1,24 @@ +--- +/** + * NOTE: this page is a fix for old cached articles w/ cozified links going to an `a` route + */ +import SimpleAddressBar from '../components/SimpleAddressBar.astro' +import App from '../layouts/App.astro' +import Library from '../components/Library.astro' +import Footer from '../components/Footer.astro' + +export const prerender = false +const url = Astro.url.searchParams.get('url') +return Astro.redirect(`/?url=${url}`) +--- + + + + +
+ Go to the correct Page +
+ + +