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

_ViewStart layout is not working on decoupled CMS at host app after publishing #3086

Closed
dodyg opened this issue Jan 24, 2019 · 1 comment
Closed
Assignees
Milestone

Comments

@dodyg
Copy link

dodyg commented Jan 24, 2019

OrchardCore version 1.0.0-beta3-70523

I publish using the following command

 dotnet publish -c Release -o "d:\Releases\Fellowship\Web" --self-contained -r win-x64

Layout defined at _ViewStart isn't used. The layout must be specified at the pages and view themselves. This behavior does not happen during development. Only after published.

orchard-core-view-layout

orchard-core-view-layout-2

The funny thing is that the _ViewStart defined at module works just fine. The problem is limited at Host App.

@sebastienros sebastienros added this to the beta3 milestone Jan 24, 2019
@jtkech
Copy link
Member

jtkech commented Jan 24, 2019

Okay, i can repro, thanks for your feedback.

I tested many scenarios at module level and yes i missed this one at the application level.

It is related to how we adapt the relative paths of view descriptors when views are precompiled in the context of their module so that they can be found at runtime in the context of the application. And it is related to the special case of the application which also behaves as a module.

But no problem i fixed the issue, right now i don't work on the dev branch but i will do a PR soon.

Meanwhile i will assigned this issue to myself.

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

No branches or pull requests

3 participants