File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
LearningHub.Nhs.WebUI/Views Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1212 {
1313 var apiBaseUrl = Configuration [" MoodleAPIConfig:BaseUrl" ];
1414 string path = $" course/view.php" ;
15- string returnUrl = $@" {apiBaseUrl }/ {path }?id={courseId }" ;
15+ string returnUrl = $@" {apiBaseUrl }{path }?id={courseId }" ;
1616
1717 return returnUrl ;
1818 }
2121 <div class =" nhsuk-card-banner-container" >
2222 @if (! string .IsNullOrWhiteSpace (Model .CourseImage ))
2323 {
24- if (Model .CourseImage .EndsWith (" .svg" , StringComparison .OrdinalIgnoreCase ))
24+ @ if (Model .CourseImage .EndsWith (" .svg" , StringComparison .OrdinalIgnoreCase ))
2525 {
26- < object class = " nhsuk-card__img nhsuk-card-banner" type = " image/svg+xml" data = " @Model.CourseImage" >
27- < img src = " /images/default-course.jpg" alt = " Fallback image" / >
28- < / object >
26+ <img class =" nhsuk-card__img nhsuk-card-banner" src =" @Model.CourseImage" alt =" Course image" onerror =" this.onerror=null;this.src='/images/default-course.jpg';" />
2927 }
3028 else
3129 {
Original file line number Diff line number Diff line change 3838
3939 var apiBaseUrl = Configuration [" MoodleAPIConfig:BaseUrl" ];
4040 string path = $" course/view.php" ;
41- string returnUrl = $@" {apiBaseUrl }/ {path }?id={courseId }" ;
41+ string returnUrl = $@" {apiBaseUrl }{path }?id={courseId }" ;
4242
4343 return returnUrl ;
4444 }
You can’t perform that action at this time.
0 commit comments