mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 14:11:01 -04:00
Stay on the right page when we navigate up in the breadcrumb.
Introduce a "show" parameter which contains the id of the item that we want to show when we go to the parent's page.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<? if ($page_type != "tag"): ?>
|
||||
<ul id="gBreadcrumbs">
|
||||
<? foreach ($parents as $parent): ?>
|
||||
<li><a href="<?= url::site("albums/{$parent->id}") ?>"><?= $parent->title ?></a></li>
|
||||
<li><a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>"><?= $parent->title ?></a></li>
|
||||
<? endforeach ?>
|
||||
<li class="active"><?= $item->title ?></li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user