Fix issue output empty string when url has search query