diff --git a/src/gui/components/_legacy.py b/src/gui/components/_legacy.py index 49d9b20..6903762 100644 --- a/src/gui/components/_legacy.py +++ b/src/gui/components/_legacy.py @@ -619,7 +619,15 @@ def render_sticky_footer() -> None: div.id = 'datatools-sticky-footer'; var a = doc.createElement('a'); a.className = 'datatools-sticky-footer-link'; - a.href = 'home'; + // Navigate to the app root (``/``) instead of ``/home``. The + // home page is registered with ``default=True``, which serves + // it at the root URL. ``/home`` is NOT a recognized URL on + // every Streamlit minor version even with ``url_path="home"`` + // — some builds reserve the alias only for non-default pages. + // Using ``./`` is robust against both: it resolves to the + // current document's directory, which on a single-segment + // tool-page URL like ``/01_deduplicator`` is the server root. + a.href = './'; a.target = '_self'; a.textContent = label; div.appendChild(a);