thefireflytech / filament-blog

Blog plugin for laravel filament
https://packagist.org/packages/firefly/filament-blog
Other
86 stars 34 forks source link

404 error while submitting comment on a post without login #12

Closed sagautam5 closed 5 months ago

sagautam5 commented 5 months ago

Screenshot from 2024-05-19 12-39-06

Screenshot from 2024-05-19 12-35-20

Steps to reproduce:

  1. logout from the backend if you have active session
  2. visit blogs page
  3. click on any post
  4. go to comment section
  5. type something and submit.

As per the docs, it should redirect to configured login page.

classicAmitIn commented 5 months ago

your login route is redirecting to localhost:8000/blogs/login. And I think your login route is localhost:8000/login.

sagautam5 commented 5 months ago

check your login path from config/filamentblog.php file. The login route must be incorrectly typed. Or hover over Login button below comment box and it will show the route it is redirecting to.

I have used the default config provided by package. I didn't published the config files.

classicAmitIn commented 5 months ago

I think this package does not provide any auth system. Use something like Laravel Breeze for authentication and configure your routes accordingly.

AsmitNepali commented 5 months ago

@classicAmitIn You are right, Thanks for the reply.