Follow-up: use gon.relative_url_root instead of root_path in time_tracking
Description
We can simply use gon.relative_url_root
instead of root_path
. The MR !32552 (merged) updated some of these, but there's a few more references still
Context
The following discussion from !32552 (merged) should be addressed:
-
@pslaughter started a discussion: suggestion: Looks like there's a few other references to this
rootPath
😬 Let's handle these in a follow up
😄 - https://gitlab.com/gitlab-org/gitlab/blob/122bbf21f68f910e8c833f2866ca7b105fcdcb16/app/assets/javascripts/sidebar/components/time_tracking/sidebar_time_tracking.vue#L57
- https://gitlab.com/gitlab-org/gitlab/blob/b36db1578ddf8ecf7da913e192dd485c4907b3df/app/views/shared/boards/components/sidebar/_time_tracker.html.haml#L7
Edited by Ammar Alakkad