kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.01k stars 529 forks source link

When not installed at web root, Kimai fails to load properly #676

Closed stoberblog closed 5 years ago

stoberblog commented 5 years ago

Describe the bug When Kimai2 is installed as a subdirectory (alias in apache in this case), it fails to load as the application calls files that it thinks should be under the domain root. In my case I installed kimai on a VM, where it's installed at 192.168.1.224/kimai2/ When I run open kimai2, the graphics is all missing and the inspector in chrome say it is trying to load 192.168.1.224/build/app.js (where this should be 192.168.1.224/kimai2/build/app.js).

I've attached a screen shot of my chrome window with the inspector open.

I'm sure there is a simple fix but it's not noted in the installation guide, and the link for developers given in this bug report (https://github.com/kevinpapst/kimai2/issues/492) no longer works (https://github.com/kevinpapst/kimai2/blob/master/var/docs/developers.md#rebuilding-assets-for-use-in-a-subdirectory) Kimai2 Bug

For those wondering why I'm installing as a sub directory and not creating a domain; a sub directory means I don't need to set my virtual machine up with a static IP address, as I use the same VM on different machines which can occasionally be on different networks.

kevinpapst commented 5 years ago

Use the latest master, this was fixed and the documentation therefor removed.

Or try to set this config: https://symfony.com/doc/current/reference/configuration/framework.html#base-path

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.