;
            if (!to) return false;
            
            // Update the URL without a full page reload
            history.pushState(null, '', to);
            
            // Notify the Kotlin router if available
            if (window.summonRouterNavigate) {
                window.summonRouterNavigate(to);
            }
            
            return false; // Prevent default link behavior
        }
        
        // Listen for popstate events (browser back/forward)
        window.addEventListener(