[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting Partial View name is wrongly formatted when inserted in a template #17614

Open
elit0451 opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@elit0451
Copy link
Member
elit0451 commented Nov 22, 2024

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

14.3.1; 15.0.0

Bug summary

Inserting a Partial View in a template results in "An unhandled exception" when visiting the view of the published page, caused by a wrongly formatted Partial View name.

Specifics

When a Partial View with the name Empty.cshtml is selected for insertion in a template, @await Html.PartialAsync("%2FEmpty%25dot%25cshtml") line is being added to the template which doesn't work. Instead, the Partial View name should be formatted correctly, like @await Html.PartialAsync("Empty")

Steps to reproduce

  • In the Settings section, create a Partial View from any snippet and give it a name of your choice;
  • Create a content type with template;
  • Visit the template and insert the Partial View you just created;
  • Create and publish a content node from that content type;
  • In the Info tab of the content node, access the link.

Expected result / actual result

Expected: The partial view to be rendered correctly;
Actual:
Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant