Fixed links if root directory is in a subdirectory of the host.

This resolves link issues if accessing the project in a subdirectory, e.g. `http://localhost/laravel/docs/public/docs`.