From 2697bea6686d3eeeb332ed7b7757a6b9849450b3 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 5 Nov 2025 15:41:49 -0600 Subject: [PATCH] bug fix with portal and return icons --- cms/sites/__init__.py | 3 ++- cms/templates/menu.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/sites/__init__.py b/cms/sites/__init__.py index cfaa448..6cf4305 100644 --- a/cms/sites/__init__.py +++ b/cms/sites/__init__.py @@ -165,7 +165,8 @@ class Initialization (IOConfig): # # updating the configuratioin _iconURI = '/'.join(["",_parentContext,self._caller.get('system.icon')]) - + if _iconURI.startswith("//") : + _iconURI = _iconURI[1:] if self._caller.get('system.context') != '': _parentContext = "/"+_parentContext _context = "/"+_context diff --git a/cms/templates/menu.html b/cms/templates/menu.html index 4a16155..a6dcd68 100644 --- a/cms/templates/menu.html +++ b/cms/templates/menu.html @@ -5,6 +5,7 @@ {% else %} {% set _backURI = system.parentContext%} {% endif %} +