fix(ui): admin opens in new tab via window.open

This commit is contained in:
Claus Lohmar 2026-06-14 18:49:04 +00:00
parent b7e5467369
commit 73d3536ad6
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ templ appTile(a AppTile) {
</div>
} else {
<div class="app-card"
onclick="window.location.href='{ a.URL }'"
onclick="window.open('{ a.URL }', '_blank')"
oncontextmenu="return false"
ontouchstart="startLongPress(event)" ontouchend="cancelLongPress()"
onmousedown="startLongPress(event)" onmouseup="cancelLongPress()">

View file

@ -183,7 +183,7 @@ func appTile(a AppTile) templ.Component {
return templ_7745c5c3_Err
}
} else {
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<div class=\"app-card\" onclick=\"window.location.href='{ a.URL }'\" oncontextmenu=\"return false\" ontouchstart=\"startLongPress(event)\" ontouchend=\"cancelLongPress()\" onmousedown=\"startLongPress(event)\" onmouseup=\"cancelLongPress()\"><div class=\"app-icon\" style=\"")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<div class=\"app-card\" onclick=\"window.open('{ a.URL }', '_blank')\" oncontextmenu=\"return false\" ontouchstart=\"startLongPress(event)\" ontouchend=\"cancelLongPress()\" onmousedown=\"startLongPress(event)\" onmouseup=\"cancelLongPress()\"><div class=\"app-icon\" style=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}