[Vuejs]-Cannot GET /PATH error when building NUXT app – DOT in the query params

0👍

Alright, I fixed it. I needed encode the dot too from the server. here’s what I did (using php). Manually replaced the . with %2E which solved the problem

$url = $frontendUrl . '?verify_url=' . urlencode($verifyUrl);
return str_replace('.', '%2E', $url); // this wont work 



return $frontendUrl . '?verify_url=' . str_replace('.', '%2E',urlencode($verifyUrl)); //this works

Leave a comment