Make sure all `Edit` pages have edit breadcrumb
The following discussion from !152603 (merged) should be addressed:
-
@thutterer started a discussion: (+4 comments) @jeeyo @annabeldunstone There is still a small issue with the latest version:
- The last breadcrumb always should be the current page. In this case "Edit". This one is still missing.
- The breadcrumb that shows the environment's name should link to the environment's
showview. It currently points toedit.
Both can be fixed with this update:
- add_to_breadcrumbs _("Environments"), project_environments_path(@project) - add_to_breadcrumbs @environment.name, project_environment_path(@project, @environment) - breadcrumb_title _("Edit")without this patch with this patch recording_1715690666 recording_1715690806
We should also cover this fix with a feature spec.
@jeeyo Are you familiar with rspec and can provide such a spec? No problem if not. We can merge your fix without and create a follow-up issue for us to write that spec later. Just let me know which way you prefer
🤙