Didn't catch this on my local machine but I've noticed some of my pages returning the naked IP address of my web server instead of the domain name. Example:
route('homepage')
will sometimes return 192.XX8.X.2XX
or 192.XX8.X.2XX/index.php
or domain.com/index.php
. My pages are cached upon the first visit and there's a rough 50% chance the things will come out weird for all URLs on the page.
Is there an explanation for this weird behavior and how would I fix it? It's quite a concern since Googlebot is listing three additional duplicate copies of my site.
Note: I'm also using the LaravelLocalization package for my routes: https://github.com/mcamara/laravel-localization
I'm also running this app under Laravel Forge (Nginx)