added logic for cas- and dns/ records

This commit is contained in:
2022-03-29 09:24:20 +01:00
parent bb06130c97
commit 707910b037
3 changed files with 13 additions and 7 deletions
@@ -25,13 +25,15 @@ const LatestApplications = (props) => {
<Link
href={
"/dns/" +
dnsList[key].title
.split(" - ")[1]
.split(" ")
.join("-")
(dnsList[key].title.indexOf(" - ") < 0
? dnsList[key].title
: dnsList[key].title
.split(" - ")[1]
.split(" ")
.join("-"))
}
>
<a href="">{dnsList[key].title}</a>
<a>{dnsList[key].title}</a>
</Link>
</li>
);