CareSet / DURC

DURC is reverse CRUD
MIT License
3 stars 2 forks source link

URL calculations when laravel is run under a sub-directory are broken #2

Closed ftrotter closed 6 years ago

ftrotter commented 6 years ago

Assuming you are running laravel under the /project/ subdirectory for a domain.

you usually use a custom url-rewrite to ensure that

http://example.com/project/DURC/author/

is rewritten to

http://example.com/project/index.php/DURC/Author/

But in that case the routes need to be build in terms of /DURC/author but the links in all of the templates need to be for /project/DURC/author/

perhaps this is an indication that the whole url calculation method is simplistic and needs to be improved.

ftrotter commented 6 years ago

No one hosts Laravel this way. It is a bother to code this and it is not worth it.