Now it uses the APP_URL env variable so there cases where it causes errors
Now it uses the APP_URL env variable so there cases where it causes errors