Commits

Brent Plump committed df05c0c

STASHDEV-3954: Using navbuilder to build web item link for safety

Comments (0)

Files changed (1)

src/main/resources/atlassian-plugin.xml

     <web-item key="repository-settings-git-ops-panel" name="Repository git operations tab" weight="30" section="stash.repository.settings.panel/repository-settings-addons-section">
         <label key="stash.web.repository.settings.tab.git">Git operations</label>
         <tooltip key="stash.web.repository.settings.tab.git.tooltip">Perform Git operations on this repository</tooltip>
-        <link>/plugins/servlet/git-operations/${project.key}/${repository.slug}</link>
+        <link>${navBuilder.pluginServlets().path('git-operations', $project.key, $repository.slug).buildRelNoContext()}</link>
     </web-item>
 
     <servlet key="git-ops-servlet" name="Git Operations Servlet" class="com.atlassian.stash.plugin.gitops.RepositoryGitOperationsServlet">