Skip to content

Case sensitivity issue causing templates to throw an exception on Linux#252

Merged
deanleigh merged 1 commit intoUmTemplates:developfrom
stvnhrlnd:patch-1
Aug 15, 2024
Merged

Case sensitivity issue causing templates to throw an exception on Linux#252
deanleigh merged 1 commit intoUmTemplates:developfrom
stvnhrlnd:patch-1

Conversation

@stvnhrlnd
Copy link
Copy Markdown
Contributor

Hi Dean, great work on this template!

I came across an exception when running it on Ubuntu which was due to the case sensitivity of partial view file names:

System.InvalidOperationException: The partial view 'Head/_Meta' was not found. The following locations were searched:
/Views/Partials/blocklist/Components/Head/_Meta.cshtml
/Views/Partials/blockgrid/Components/Head/_Meta.cshtml
/App_Plugins/Views/Render/Head/_Meta.cshtml
/App_Plugins/Views/Shared/Head/_Meta.cshtml
/App_Plugins/Views/Partials/Head/_Meta.cshtml
/App_Plugins/Views/MacroPartials/Head/_Meta.cshtml
/Views/Head/_Meta.cshtml
/Views/Shared/Head/_Meta.cshtml
/Views/Partials/Head/_Meta.cshtml
/Views/MacroPartials/Head/_Meta.cshtml
/Views/Render/Head/_Meta.cshtml
/Views/Shared/Head/_Meta.cshtml

The template is named _meta.cshtml (lowercase) so I simply corrected this where it is rendered in the layout view.

@deanleigh deanleigh merged commit 600ec07 into UmTemplates:develop Aug 15, 2024
@deanleigh
Copy link
Copy Markdown
Collaborator

Thank you @stvnhrlnd for the pr and the compliment.
I'm currently testing/recreating UmBootstrap in V14 and it will be interesting to see how it develops using the new Backoffice

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