From 729690792f7ae9ed1cfa104d6b5be926813e0e8f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 17 Sep 2025 16:24:48 -0700 Subject: [PATCH] index: Generalize showing custom shortcut icons Instead of detecting 'custom' in the name of the icons (which can happen if the icon basename itself contains the word 'custom'), check if the icon is already an absolute URL path. Tests: - Add a custom shortcut and provide a custom icon for it in /var/www/plinth/custom/static/icons/. Visit the frontpage and ensure that the icon is visible. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/templates/index.html b/plinth/templates/index.html index c82ca63f4..be48ead79 100644 --- a/plinth/templates/index.html +++ b/plinth/templates/index.html @@ -62,7 +62,7 @@ {% endif %}
- {% if "custom" in shortcut.icon %} + {% if shortcut.icon|first == "/" %} {% else %} {% if shortcut.app_id %}