payload: {"action":"created","issue":{"url":"https://api.github.com/repos/kevinpapst/kimai2/issues/1006","repository_url":"https://api.github.com/repos/kevinpapst/kimai2","labels_url":"https://api.github.com/repos/kevinpapst/kimai2/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/kevinpapst/kimai2/issues/1006/comments","events_url":"https://api.github.com/repos/kevinpapst/kimai2/issues/1006/events","html_url":"https://github.com/kevinpapst/kimai2/issues/1006","id":476546429,"node_id":"MDU6SXNzdWU0NzY1NDY0Mjk=","number":1006,"title":"Adding Prefix for URL Generation","user":{"login":"xentity","id":6489407,"node_id":"MDQ6VXNlcjY0ODk0MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/6489407?v=4","gravatar_id":"","url":"https://api.github.com/users/xentity","html_url":"https://github.com/xentity","followers_url":"https://api.github.com/users/xentity/followers","following_url":"https://api.github.com/users/xentity/following{/other_user}","gists_url":"https://api.github.com/users/xentity/gists{/gist_id}","starred_url":"https://api.github.com/users/xentity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xentity/subscriptions","organizations_url":"https://api.github.com/users/xentity/orgs","repos_url":"https://api.github.com/users/xentity/repos","events_url":"https://api.github.com/users/xentity/events{/privacy}","received_events_url":"https://api.github.com/users/xentity/received_events","type":"User","site_admin":false},"labels":[{"id":984026515,"node_id":"MDU6TGFiZWw5ODQwMjY1MTU=","url":"https://api.github.com/repos/kevinpapst/kimai2/labels/installation","name":"installation","color":"8b9aed","default":false,"description":""},{"id":465620217,"node_id":"MDU6TGFiZWw0NjU2MjAyMTc=","url":"https://api.github.com/repos/kevinpapst/kimai2/labels/question","name":"question","color":"cc317c","default":true,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2019-08-04T12:14:04Z","updated_at":"2019-11-21T17:11:25Z","closed_at":null,"author_association":"NONE","body":"**Is your feature request related to a problem? Please describe.**\r\nWhile frameworks like Symfony enables fast and rapid development, they assume to be alone on a server :-)\r\nI am able to run kimai2 behind a reverse proxy, but unfortunately the URLs of symfony are static generated.\r\n\r\nIf I open the dashboard like this: https://server.tld/kimai2/de/timesheet/ , all links are generated without kimai2. All following actions can't routed to kimai2 (see nginx config below), since the prefix kimai2 is missing:\r\n\r\n- https://server.tld/de/calendar/\r\n- https://server.tld/de/invoice/\r\n- https://server.tld/de/export/\r\n\r\n**Describe the solution you'd like**\r\nAdd the possibility to add a static prefix (like /kimai2) to every URL.\r\n\r\n**Describe alternatives you've considered**\r\nUsing relative links, but I guess, the static links are generated by the framework.\r\nFramework config hacks to test it before integrating in the GUI are also welcome.\r\n\r\n**Additional context**\r\nMy NGINX config looks like this:\r\n\r\n```\r\nserver {\r\n        listen 443 ssl;\r\n        server_name server.tld web01 web01.local.lan;\r\n        server_tokens off;\r\n        ssl    on;\r\n        ...\r\n        location /kimai2/ {\r\n                proxy_pass http://localhost:8082/;\r\n                include /etc/nginx/proxy_params;\r\n        }\r\n\r\n        ###################\r\n        # Local Apps\r\n        ###################\r\n\r\n        location / {\r\n                index index.php index.html;\r\n                root /var/www/;\r\n\r\n                location ~ \\.php$ {\r\n                        include snippets/fastcgi-php.conf;\r\n                        fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;\r\n                }\r\n        }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/kevinpapst/kimai2/issues/comments/557182817","html_url":"https://github.com/kevinpapst/kimai2/issues/1006#issuecomment-557182817","issue_url":"https://api.github.com/repos/kevinpapst/kimai2/issues/1006","id":557182817,"node_id":"MDEyOklzc3VlQ29tbWVudDU1NzE4MjgxNw==","user":{"login":"kevinpapst","id":533162,"node_id":"MDQ6VXNlcjUzMzE2Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/533162?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinpapst","html_url":"https://github.com/kevinpapst","followers_url":"https://api.github.com/users/kevinpapst/followers","following_url":"https://api.github.com/users/kevinpapst/following{/other_user}","gists_url":"https://api.github.com/users/kevinpapst/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpapst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpapst/subscriptions","organizations_url":"https://api.github.com/users/kevinpapst/orgs","repos_url":"https://api.github.com/users/kevinpapst/repos","events_url":"https://api.github.com/users/kevinpapst/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpapst/received_events","type":"User","site_admin":false},"created_at":"2019-11-21T17:11:25Z","updated_at":"2019-11-21T17:11:25Z","author_association":"OWNER","body":"I found a fix that is so stupid, I canÄt believe it actually works...\r\nThis is my nginx definition:\r\n```\r\n\r\n    location /kimai2 {\r\n          proxy_pass http://127.0.0.1:8050;\r\n\r\n          proxy_set_header        Host $http_host;\r\n          proxy_set_header X-Forwarded-Host $host:$server_port;\r\n          proxy_set_header X-Forwarded-Server $host;\r\n\r\n          #proxy_set_header        Host $host;\r\n          proxy_set_header        X-Real-IP $remote_addr;\r\n          proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;\r\n          proxy_set_header        X-Forwarded-Proto $scheme;\r\n          proxy_set_header        X-Forwarded-Port $server_port;\r\n      }\r\n```\r\n\r\nNow, all I had to do is the config from my post above and I created one symlink in the public/ directory: `ln -s . kimai2` (that might be a bigger problem in a docker setup, but hey - it works...)"}}
other: {"actor":{"display_login":"kevinpapst"}}