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:
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:
<>>
html
lang
=
"en"
class
=
""
>
<>>
head
>
<>>
title
>
title
>
<>>
meta
charset
=
"utf-8"
>
<>>
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
>
<>>
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1"
>
<>>
link
href
=
"@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("
ClientResources/epi/themes/legacy/ShellCore.css"))"
rel
=
"stylesheet"
type
=
"text/css"
/>
<>>
link
href
=
"@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("
ClientResources/epi/themes/legacy/DojoDashboardCompatibility.css"))"
rel
=
"stylesheet"
type
=
"text/css"
/>
<>>
link
href
=
"@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("
ClientResources/epi/themes/sleek/sleek.css"))"
rel
=
"stylesheet"
type
=
"text/css"
/>
<>>
link
href
=
"@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
>
<>>
script
type
=
"text/javascript"
src
=
"@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("
ClientResources/dojo/dojo.js"))">
script
>
<>>
script
type
=
"text/javascript"
src
=
"@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("
ClientResources/epi/epi.js"))">
script
>
head
>
<>>
body
class
=
"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:
<>>
script
type
=
"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