Skip to content

fix(render): Append .cshtml extension to custom field paths#63

Merged
ropalko merged 1 commit into
2sic:masterfrom
carlossnts:patch-1
Jul 29, 2025
Merged

fix(render): Append .cshtml extension to custom field paths#63
ropalko merged 1 commit into
2sic:masterfrom
carlossnts:patch-1

Conversation

@carlossnts

Copy link
Copy Markdown
Contributor

The rendering logic for custom Razor fields was failing because it passed the field's filename without the .cshtml extension to Html.Partial.

In the target environment, the rendering engine does not automatically append the extension, which caused a compilation error. This change explicitly concatenates the ".cshtml" string to the path, resolving the issue for all custom fields.

The rendering logic for custom Razor fields was failing because it passed the field's filename without the .cshtml extension to Html.Partial.

In the target environment, the rendering engine does not automatically append the extension, which caused a compilation error. This change explicitly concatenates the ".cshtml" string to the path, resolving the issue for all custom fields.
@carlossnts carlossnts closed this Jul 28, 2025
@carlossnts carlossnts reopened this Jul 28, 2025
@iJungleboy
iJungleboy requested a review from ropalko July 28, 2025 13:49
@iJungleboy

Copy link
Copy Markdown
Contributor

@ropalko could you check and if ok, pull/merge/version-bump/publish?

@iJungleboy

Copy link
Copy Markdown
Contributor

@ropalko if this was wrong, pls ensure that our dev-setup has a plausible example so we would see if it doesn't work.

my guess is that we originally stored the file name with extension, and that out test-data is therefor wrong...?

@ropalko
ropalko merged commit 293e85e into 2sic:master Jul 29, 2025
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.

3 participants