Legals: only display external URLs.

This commit is contained in:
Benoit Marty 2021-12-08 22:54:15 +01:00 committed by Benoit Marty
parent 5823777755
commit eed7d15b0e

View file

@ -115,7 +115,7 @@ class LegalsController @Inject constructor(
discoveryPolicyItem {
id(tag + policy.url)
name(policy.name)
url(policy.url)
url(policy.url.takeIf { it.startsWith("http") })
clickListener { host.listener?.openPolicy(policy) }
}
}