Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Error in routes. #10

Open
violentanirudh opened this issue Aug 31, 2023 · 2 comments
Open

Error in routes. #10

violentanirudh opened this issue Aug 31, 2023 · 2 comments

Comments

@violentanirudh
Copy link

violentanirudh commented Aug 31, 2023

URL routing is not working as expected

example.com/auth/ is working but example.com/auth is also working (without css)
example.com/auth/dashboard working but example.com/auth/dashboard/ is also working (without css)
example.com/auth/setting working but example.com/auth/setting/ is also working (without css)

Which means, dashboard and setting is working like directory.

app() -> mount('/auth', function() {

    app() -> get('', 'AuthController@index');
    app() -> get('dashboard', 'AuthController@dashboard');
    app() -> get('setting', 'AuthController@setting');

});

app() -> get('*', 'ErrorController@notfound');
@milosPavic
Copy link

You need to run leaf from public folder, go to public folder then type "leaf serve" all will be there. When you put app on the server apache knows how to handle redirects but php -s emebed server don't know.

@mychidarko
Copy link
Member

Hi @violentanirudh, I must've missed this issue. Can you confirm you used ViewsPath() or PublicPath() to correctly reference your CSS?

@mychidarko mychidarko moved this to To do in Leaf Board Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Under Review
Development

No branches or pull requests

3 participants