fix: nachdem tag ausgewählt wird springt seite direkt wieder zum basics div

This commit is contained in:
2026-03-23 10:52:13 +01:00
parent cdd4b7db46
commit e06a4f87dd
+2 -2
View File
@@ -274,12 +274,12 @@ document.getElementById('landingCta').addEventListener('click', function(e){
<div class="tag-panel__head"> <div class="tag-panel__head">
<h3><?php echo e($t['browse_tags']); ?></h3> <h3><?php echo e($t['browse_tags']); ?></h3>
<?php if ($activeTag): ?> <?php if ($activeTag): ?>
<a class="tag clear" href="/index.php?lang=<?php echo e($lang); ?>"><?php echo e($t['tag_clear']); ?></a> <a class="tag clear" href="/index.php?lang=<?php echo e($lang); ?>#basics"><?php echo e($t['tag_clear']); ?></a>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="tag-row tag-row--panel"> <div class="tag-row tag-row--panel">
<?php foreach ($allTags as $tTag): ?> <?php foreach ($allTags as $tTag): ?>
<a class="tag<?php echo strtolower($tTag) === strtolower($activeTag ?? '') ? ' active' : ''; ?>" href="<?php echo e($tagUrl($tTag)); ?>">#<?php echo e($tTag); ?></a> <a class="tag<?php echo strtolower($tTag) === strtolower($activeTag ?? '') ? ' active' : ''; ?>" href="<?php echo e($tagUrl($tTag)); ?>#basics">#<?php echo e($tTag); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</div> </div>