Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants