Skip to content

Force template mode when loading _layouts/components/header-photo.twig#15487

Merged
brandonkelly merged 6 commits into5.xfrom
bugfix/header-photo-template-on-site
Sep 3, 2024
Merged

Force template mode when loading _layouts/components/header-photo.twig#15487
brandonkelly merged 6 commits into5.xfrom
bugfix/header-photo-template-on-site

Conversation

@timkelty
Copy link
Copy Markdown
Contributor

@timkelty timkelty commented Aug 6, 2024

Description

If you are using the UsersController in a site context, you will end up with an error when uploading or removing a user photo:

There was an error uploading the photo: Unable to find the template “_layouts/components/header-photo.twig”.

This forces it to use the cp view mode.

Related Issues

@timkelty timkelty requested a review from brandonkelly August 6, 2024 19:49
@brandonkelly brandonkelly merged commit ac77954 into 5.x Sep 3, 2024
@brandonkelly brandonkelly deleted the bugfix/header-photo-template-on-site branch September 3, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants