Fix broken URLs when laravel is in a folder

Fixes issue #761