From 3ee8839ac20e07fa24f4a73097262c9a59f4b836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Tue, 28 May 2024 14:47:12 +0200 Subject: [PATCH] feature/clean up webui_api_documentation_url code --- obp-api/src/main/scala/code/snippet/WebUI.scala | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/obp-api/src/main/scala/code/snippet/WebUI.scala b/obp-api/src/main/scala/code/snippet/WebUI.scala index 6ac8bddf1a..90bfdc7d7b 100644 --- a/obp-api/src/main/scala/code/snippet/WebUI.scala +++ b/obp-api/src/main/scala/code/snippet/WebUI.scala @@ -328,12 +328,7 @@ class WebUI extends MdcLoggable{ def sandboxIntroductionLink: CssSel = { val webUiApiDocumentation = getWebUiPropsValue("webui_api_documentation_url",s"${getServerUrl}/introduction") - val apiDocumentation = - if (webUiApiDocumentation == s"${getServerUrl}/introduction") - webUiApiDocumentation - else - webUiApiDocumentation + "#Sandbox-Introduction" - "#sandbox-introduction-link [href]" #> scala.xml.Unparsed(apiDocumentation) + "#sandbox-introduction-link [href]" #> scala.xml.Unparsed(webUiApiDocumentation) } def technicalFaqsAnchor: CssSel = {