Project

General

Profile

Actions

Defect #34805

closed

Activity tab in cross-project menu is sometimes broken

Added by Felix Schäfer over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When navigating to a page for a global object the "Activity" tab in the tab menu might link to /projects/:id/activity with the ID of the object instead of /activity. This is the wrong link and the link might be broken.

For example, when editing an issue query that is for all projects with the ID 123, the URL of the page is /queries/123/edit. In that case the "Activity" tab will implicitly use the ID of the query to construct the activity link and the "Activity" tab will link to /projects/123/activity. As the query is a query for all projects the tabs shown are for the :application_menu and the link should be to the global activity and not the specific activity of a project. Furthermore, a project with that ID might not exist so this might lead to an error page.

I hope this explanation was clear, if there is any doubt feel free to ask for a clarification.


Files

34805.diff (1.25 KB) 34805.diff Felix Schäfer, 2021-02-25 17:48
Actions

Also available in: Atom PDF