From 4e53081afce67083681907120235d3eee06dbcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mih=C3=A1lik?= Date: Sun, 24 Nov 2024 13:42:17 +0100 Subject: [PATCH] Removed django flatpages and sites (#503) --- src/components/Admin/Admin.tsx | 2 +- src/pages/strom/[page].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Admin/Admin.tsx b/src/components/Admin/Admin.tsx index 2e081858..2c74438f 100644 --- a/src/components/Admin/Admin.tsx +++ b/src/components/Admin/Admin.tsx @@ -54,7 +54,7 @@ export const Admin: FC = () => { ( - `${process.env.NEXT_PUBLIC_BE_PROTOCOL}://${process.env.NEXT_PUBLIC_BE_HOSTNAME}:${process.env.NEXT_PUBLIC_BE_PORT}/base/flat-page/by-url/${requestedUrl}`, + `${process.env.NEXT_PUBLIC_BE_PROTOCOL}://${process.env.NEXT_PUBLIC_BE_HOSTNAME}:${process.env.NEXT_PUBLIC_BE_PORT}/cms/flat-page/by-url/${requestedUrl}`, ) // ked stranka neexistuje, vrati sa `content: ""`. teraz renderujeme stranku len ked je content neprazdny a server rovno vrati redirect. // druha moznost by bola nechat prazdny content handlovat clienta - napriklad zobrazit custom error, ale nechat usera na neplatnej stranke.