From 68593d7b4cfca8a02926902c1bf9d4c605be9690 Mon Sep 17 00:00:00 2001 From: Jevgenij Puchko Date: Tue, 1 Oct 2024 08:59:52 +0300 Subject: [PATCH] Update RequestHandler.cs Add ignore --- src/Geta.NotFoundHandler/Core/RequestHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Geta.NotFoundHandler/Core/RequestHandler.cs b/src/Geta.NotFoundHandler/Core/RequestHandler.cs index e7d18b84..985190f6 100644 --- a/src/Geta.NotFoundHandler/Core/RequestHandler.cs +++ b/src/Geta.NotFoundHandler/Core/RequestHandler.cs @@ -131,6 +131,11 @@ public virtual bool HandleRequest(Uri referer, Uri urlNotFound, out CustomRedire if (redirect != null) { + if (redirect.State.Equals((int)RedirectState.Ignored)) + { + return false; + } + // Url has been deleted from this site if (redirect.State.Equals((int)RedirectState.Deleted)) {