         // Handle ZHTP domain
                const domain = url.replace('zhtp://', '');
                loadDomain(domain);
            } else if (url.startsWith('http://') || url.startsWith('https://')) {
                // Handle traditional URL
                showToast('Opening external URL: ' + url, 'info');
                window.open(url, '_blank');
            } else {
                // Treat as search
                searchNetwork('general', url);
            }
        }

        // Load ZHTP do