Skip to content

Commit

Permalink
feature/clean up webui_api_documentation_url code
Browse files Browse the repository at this point in the history
  • Loading branch information
constantine2nd committed May 28, 2024
1 parent 07e201b commit 3ee8839
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions obp-api/src/main/scala/code/snippet/WebUI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3ee8839

Please sign in to comment.