My named routes are being calculated as www.example.com/<route>
. Why is the www.example.com
domain being used? This breaks selenium tests where a browser is opened because the browser is attempting to access www.example.com/sports, which obviously doesn't exist.
If I used the paths instead of url (sports_path
instead of sports_url
), things work fine. It's only my named url routes that is throwing in the www.example.com domain.