From 0648904b5189e4e4ff3d1a5833014229d814a254 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman Date: Thu, 12 Oct 2023 15:07:10 -0400 Subject: [PATCH] Changed the rewrite to a redirect --- vercel.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/vercel.json b/vercel.json index 18a208c3..689907fb 100644 --- a/vercel.json +++ b/vercel.json @@ -17,6 +17,17 @@ { "source": "/activitypub-support-added/", "destination": "/news/activitypub-support-added/" + }, + { + "source": "/news/:pathPage/", + "has": [ + { + "type": "header", + "key": "Accept", + "value": "application/activity+json" + } + ], + "destination": "/news/:pathPage/status.ajson" } ], "rewrites": [ @@ -60,11 +71,6 @@ "source": "/send-note", "destination": "/api/activitypub/sendNote.js" }, - { - "source": "/news/:pathPage/", - - "destination": "/news/:pathPage/status.ajson" - }, { "source": "/:pathSection/:pathPage/activity", "destination": "/:pathSection/:pathPage/activity.ajson"