From e511f7237a72a0cdb059b1a763d6b732b1b93cd5 Mon Sep 17 00:00:00 2001 From: Anders Bjerner Date: Thu, 30 Sep 2021 21:34:41 +0200 Subject: [PATCH] Thanks Umbraco --- .../Controllers/Api/RedirectsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skybrud.Umbraco.Redirects/Controllers/Api/RedirectsController.cs b/src/Skybrud.Umbraco.Redirects/Controllers/Api/RedirectsController.cs index c6e51af..1520711 100644 --- a/src/Skybrud.Umbraco.Redirects/Controllers/Api/RedirectsController.cs +++ b/src/Skybrud.Umbraco.Redirects/Controllers/Api/RedirectsController.cs @@ -272,7 +272,7 @@ public object GetRedirects(int page = 1, int limit = 20, string type = null, str RedirectsSearchResult result = _redirects.GetRedirects(options); // Map the result for the API - return _backOffice.Map(result); + return new JsonResult(_backOffice.Map(result)); } catch (RedirectsException ex) {