From dfd5230d23b2fa7da164d35524aaccdfcc9e62f5 Mon Sep 17 00:00:00 2001 From: Ryan Taylor <90803397+rtaylorzfin@users.noreply.github.com> Date: Fri, 15 Nov 2024 08:00:16 -0800 Subject: [PATCH] ZFIN-9405: SEO: Handle error "Duplicate without user-selected canonical" (#1195) * ZFIN-9405: Add canonical URLs for entities * ZFIN-9405: Add title for fish phenotype pages * ZFIN-9405: Remove user agent * Move logic for resolving canonical URLs into the JSP function --- home/WEB-INF/tags/layout/page.tag | 1 + home/WEB-INF/tld/zfin-fn.tld | 12 + home/robots.txt | 8 + .../ExpressionSearchController.java | 8 +- .../ExpressionSearchCriteria.java | 218 +----------------- .../service/ExpressionSearchService.java | 7 + .../presentation/FigureViewController.java | 6 - .../presentation/FishPhenotypeController.java | 2 +- .../presentation/ZfinJSPFunctions.java | 22 ++ .../seo/CanonicalLinkConfig.java | 92 ++++++++ .../service/RequestService.java | 25 ++ .../presentation/MappingDetailController.java | 1 - .../presentation/CloneViewController.java | 3 - .../presentation/GeneViewController.java | 3 + ...equenceTargetingReagentViewController.java | 4 +- .../TranscriptViewController.java | 3 - .../NomenclatureSubmissionController.java | 14 +- .../presentation/ImageViewController.java | 2 +- .../PublicationViewController.java | 3 - 19 files changed, 194 insertions(+), 240 deletions(-) create mode 100644 source/org/zfin/infrastructure/seo/CanonicalLinkConfig.java create mode 100644 source/org/zfin/infrastructure/service/RequestService.java diff --git a/home/WEB-INF/tags/layout/page.tag b/home/WEB-INF/tags/layout/page.tag index 57a46ecdf8..a4e97b0c4b 100644 --- a/home/WEB-INF/tags/layout/page.tag +++ b/home/WEB-INF/tags/layout/page.tag @@ -32,6 +32,7 @@