A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Hi!
I have made a small custom view for Episerver 7.5 edit where I use dojo but one file fails to load.
This is my layout file:
<>>htmllang="en"class=""><>>head><>>title>title><>>metacharset="utf-8"><>>metahttp-equiv="X-UA-Compatible"content="IE=edge"><>>metaname="viewport"content="width=device-width, initial-scale=1"><>>linkhref="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/legacy/ShellCore.css"))"rel="stylesheet"type="text/css"/><>>linkhref="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/legacy/DojoDashboardCompatibility.css"))"rel="stylesheet"type="text/css"/><>>linkhref="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/sleek/sleek.css"))"rel="stylesheet"type="text/css"/><>>linkhref="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/sleek/document.css"))"rel="stylesheet"type="text/css"/><>>script>dojoConfig = {async: true,parseOnLoad: true,packages: [{name: 'dgrid',location: '//cdn.rawgit.com/SitePen/dgrid/v0.3.6'},{name: 'xstyle',location: '//cdn.rawgit.com/kriszyp/xstyle/v0.1.2'},{name: 'put-selector',location: '//cdn.rawgit.com/kriszyp/put-selector/v0.3.5'}]};script><>>scripttype="text/javascript"src="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/dojo/dojo.js"))">script><>>scripttype="text/javascript"src="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/epi.js"))">script>head><>>bodyclass="Sleek">@RenderBody()body>html>When the page is loading I get this error:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.local/episerver/Shell/3.0.1209/ClientResources/epi/shell/ui/nls/undefined/episerver.shared.js
There is an undefined where there should be a lang I guess?
If I look on the normal edit page it looks like this:
<>>scripttype="text/javascript"charset="utf-8"src="/episerver/Shell/3.0.1209/ClientResources/EPi/shell/ui/nls/en-us/episerver.shared.js">script>but in my custom page this is loaded:
"text/javascript"charset="utf-8"src="/episerver/Shell/3.0.1209/ClientResources/epi/shell/ui/nls/undefined/episerver.shared.js">What am I missing?
Thanks!
/Kristoffer