fix: Add _blank target for links

This commit is contained in:
2025-07-18 12:59:56 +10:00
parent 4b732955c7
commit ad29255a43

View File

@@ -87,11 +87,11 @@ def domain_info(params, authentication):
if domainType == "marketplace": if domainType == "marketplace":
price = data["data"].get("price", "No price available") price = data["data"].get("price", "No price available")
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>" returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}' target='_blank'>View Listing</a>"
else: else:
stakedData = checkStaked(domain) stakedData = checkStaked(domain)
if stakedData: if stakedData:
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}'>View Listing</a>" returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}' target='_blank'>View Listing</a>"