Skip to content

Commit 6656cfb

Browse files
Corrected Display for Hostname and Path Columns
1 parent 58690cf commit 6656cfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dockflare/app/templates/status_page.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,14 @@ <h2 class="card-title text-2xl sm:text-3xl border-b border-base-300 pb-3 mb-6">
226226
{% endif %}
227227
</td>
228228
<td class="p-3 whitespace-nowrap">
229-
<a href="https://{{ hostname }}{{ details.path if details.path else '' }}" target="_blank" rel="noopener noreferrer" title="Open https://{{ hostname }}{{ details.path if details.path else '' }}" class="link link-hover link-primary text-sm">
230-
{{ hostname }}
229+
<a href="{{ protocol }}://{{ details.hostname_for_dns }}{{ details.path if details.path else '' }}" target="_blank" rel="noopener noreferrer" title="Open {{ protocol }}://{{ details.hostname_for_dns }}{{ details.path if details.path else '' }}" class="link link-hover link-primary text-sm">
230+
{{ details.hostname_for_dns }}
231231
</a>
232-
{% if hostname.startswith('*.') %}
232+
{% if details.hostname_for_dns and details.hostname_for_dns.startswith('*.') %}
233233
<span class="badge badge-info badge-xs ml-2">wildcard</span>
234234
{% endif %}
235235
</td>
236+
{# Path Column (already correct) #}
236237
<td class="p-3 whitespace-nowrap">
237238
{% if details.path and details.path.strip() %}
238239
<code class="text-xs opacity-70">{{ details.path }}</code>

0 commit comments

Comments
 (0)