I'm trying to create a custom user edit page with twig located under /user/uid.

I have a custom theme and inside the templates folder I have created user.html.twig and in custom_theme.theme I've created a function custom_theme_preprocess_user(). The template renders correctly, but the problem I'm having is that the template now also renders under /node/id.

I might be doing this all wrong, so all help would be appreciated.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.