feat: Update path to not need /hns

This commit is contained in:
2025-06-17 22:43:54 +10:00
parent 6baecf5561
commit 492167e1d0
5 changed files with 133 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
// Function to navigate to HNS domain
// Function to navigate to HNS domain (using new URL format)
function navigateToHnsDomain() {
const domain = domainInput.value.trim();
@@ -41,8 +41,8 @@ document.addEventListener('DOMContentLoaded', () => {
// Clean up domain input (remove trailing slashes)
const cleanDomain = domain.replace(/\/+$/, '');
// Navigate to the HNS domain
window.location.href = `/hns/${cleanDomain}`;
// Navigate to the HNS domain using new format
window.location.href = `/${cleanDomain}`;
}
// Check server status

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IPFS.act</title>
<link rel="icon" href="https://woodburn.au/favicon.png" type="image/png">
</head>
<body style="background-color: black; color: blueviolet;text-align: center;">
<h1>IPFS.act</h1>

View File

@@ -45,7 +45,7 @@
</ol>
<p>
<strong>URL format:</strong> <code>https://ipfs.woodburn.au/hns/[domain]/[path]</code><br>
<strong>URL format:</strong> <code>https://ipfs.woodburn.au/[domain]/[path]</code><br>
Replace <code>[domain]</code> with any Handshake domain and <code>[path]</code> with an optional path.
</p>
</section>