Link in main navigation leads to 404 when direct transfer is disabled
Summary
A link to /import/bulk_imports/history is displayed in the work nav bar even if the instance setting Allow migrating GitLab groups and projects by direct transfer is disabled, leading to a 404 page.
Steps to reproduce
- On a dedicated instance, go to
Settings > General > Import and export settingsand uncheckAllow migrating GitLab groups and projects by direct transfer - Visit
/dashboard/activity- You should still see a link to "Import history"
- Click on "Import history"
- You should get a 404
What is the current bug behavior?
The link is displayed, but the feature is not.
What is the expected correct behavior?
It should be consistent. Either the feature is enabled, therefore the link would be displayed, or it is not and the link to it is hidden (or at least deactivated).
Relevant logs and/or screenshots
Edited by Yann Weyer


