This commit is contained in:
Celeste 2025-05-31 16:45:28 +07:00 committed by GitHub
commit 171328df7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@
const wrongUrl = new URL(window.location.href); const wrongUrl = new URL(window.location.href);
/// Get the search keyword from the wrong URL by removing all slashes and dashes /// Get the search keyword from the wrong URL by removing all slashes and dashes
const searchKeyword = wrongUrl.pathname.split(/[/|-]/).join(' ').trim(); const searchKeyword = decodeURIComponent(wrongUrl.pathname).split(/[/|-]/).join(' ').trim();
document.getElementById('searchInput').setAttribute('value', searchKeyword); document.getElementById('searchInput').setAttribute('value', searchKeyword);
</script> </script>