Sub application under main site #278
-
hi, i am using this component on a razor .net6 site, i have to deploy it as a sub application/site, as we need to share the 80/443 bindings/certs with many other sites under the same host. no matter how i set the options in program.cs for the component using StaticAssetsContentPath and CompiledContentPath, it seems it is always resolved at runtime relative to the host root and not the application root as there seems to be validation/bootstrapping that requires the properties to start with a "/" (not "~ /" or even no slash) I did think at first trying "/mysitename/govukassets", but this just kicks the can down the road as only "/mysitename/mysitename/goveukassets" can be resolved. I can get it working somewhat by manually creating the folders and copying the css/js/fonts but kinda defeats the purpose of the component nicely loading everything for me. Just to confirm I am running the site as an application under the main site. https://some-local-council.gov.uk/mysitename thanks for a great product btw, just been frustrating since having to deploy as sub app on iis. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I suspect this is due a missing |
Beta Was this translation helpful? Give feedback.
@daxydoggie could you try out https://www.nuget.org/packages/GovUk.Frontend.AspNetCore/2.1.0-rc and see if it works for you? It should just work without doing anything special with
StaticAssetsContentPath
orCompiledContentPath
.