Tag Manager "View in gallery" does not work with $conf['tag_url_style'] = 'tag' #1395

Open
opened 2026-10-05 00:42:09 +02:00 by adam · 0 comments
Owner

If one has $conf['tag_url_style'] = 'tag'; configured, then under Admin -> Photos -> Keywords, for any keyword selecting "View in gallery" generates an URL with id-tag for which no results are displayed.
The cause is in admin/themes/default/template/tags.tpl where there is
tag_U_VIEW = 'index.php?/tags/%s-%s'|@sprintf:$tag['id']:$tag['url_name']
Changing that to
tag_U_VIEW = 'index.php?/tags/%s'|@sprintf:$tag['url_name']
makes things work for this scenario, but of course that is only a workaround equally hardwired and wrong for other tag_url_style configurations. A solution would have to take the different configuration values into account.

If one has `$conf['tag_url_style'] = 'tag';` configured, then under Admin -> Photos -> Keywords, for any keyword selecting "View in gallery" generates an URL with id-tag for which no results are displayed. The cause is in admin/themes/default/template/tags.tpl where there is `tag_U_VIEW = 'index.php?/tags/%s-%s'|@sprintf:$tag['id']:$tag['url_name']` Changing that to `tag_U_VIEW = 'index.php?/tags/%s'|@sprintf:$tag['url_name']` makes things work for this scenario, but of course that is only a workaround equally hardwired and wrong for other tag_url_style configurations. A solution would have to take the different configuration values into account. <!-- github-sync-id:1092063445 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1395