Used route names for security paths

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.1+
| Fixed tickets | #2237

 > This needs a rebase when #2222 is merged