dexterity42 / SharedProjectTimesheetsBundle

Shared Project Timesheets Bundle - Kimai 2 Plugin
MIT License
9 stars 14 forks source link

Error 404 when selecting something on the shared timesheet #29

Closed yroberttissot closed 2 years ago

yroberttissot commented 2 years ago

Kimai version: 1.19.3 PHP v : 8.0.17 SharedProjectTimesheetsBundle v: 2.1.0

Error 404 occurs when:

  1. Selecting a month or a year
  2. Clicking on button 'chart' or 'table'

The url .com/public/en/auth/shared-project-timesheets/17/40e35562f616 works, but when clicking on a button it changes to .com/en/auth/shared-project-timesheets/17/40e35562f616?year=2023&month=4 which gives the 404 Error.

If I manually add /public/ in the url with the request, it works again. How can I fix this?

fails: .com/en/auth/shared-project-timesheets/17/40e35562f616?year=2023&month=4 works: .com/public/en/auth/shared-project-timesheets/17/40e35562f616?year=2023&month=4

yroberttissot commented 2 years ago

I could fix it with replacing -> app.request.pathinfo with -> url('view_shared_project_timesheets', {projectId: sharedProject.project.id, shareKey: sharedProject.shareKey}) in timesheet.html.twig