Hot answers tagged

2

Creating an alias in /admin/config/search/path/add worked. I created an alias /api/nat/news/ to /nat/news Thanks 4k4 for a much easier solution drupal.stackexchange.com/a/187497/47547


2

The user URLs (or routes to be more "Drupal correct") are defined by the core user module (core/modules/user/user.routing.yml) E.g. user.register: path: '/user/register' ... user.login: path: '/user/login' ... user.logout: path: '/user/logout' ... user.page: path: '/user' ... So you can programmatically build links to these ...


Only top voted, non community-wiki answers of a minimum length are eligible