-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
https://github.com/nabinked/NToastNotify/blob/master/src/Views/Shared/Components/NToastNotify/Default.cshtml#L7 uses https://github.com/nabinked/NToastNotify/blob/master/src/Components/NToastNotifyViewComponent.cs#L30 to load the script
The ScriptSrc property is in https://github.com/nabinked/NToastNotify/blob/master/src/Components/NToastNotifyViewComponent.cs#L28
The rendered html shows the mismatch:
<script src=[/_content/NToastNotify/toastr.js?8.0.0.0](https://dev-landing.exira.com:7443/_content/NToastNotify/toastr.js?8.0.0.0)></script><script>if(nToastNotify){nToastNotify.init({firstLoadEvent:'DOMContentLoaded',messages:[],responseHeaderKey:'X-NToastNotify-Messages',requestHeaderKey:'X-Requested-With',libraryDetails:{"varName":"toastr","scriptSrc":"/lib/toastr/toastr.min.js","styleHref":"/lib/toastr/toastr.min.css","options":{"positionClass":"toast-bottom-center","progressBar":false,"type":"success"}},disableAjaxToasts:false});};</script>The C# used to load:
.AddNToastNotifyToastr(
new ToastrOptions
{
ProgressBar = false,
PositionClass = ToastPositions.BottomCenter,
},
new NToastNotifyOption
{
ScriptSrc = "/lib/toastr/toastr.min.js",
StyleHref = "/lib/toastr/toastr.min.css",
})This results in GET ......................./_content/NToastNotify/toastr.js net::ERR_ABORTED 404
Metadata
Metadata
Assignees
Labels
No labels