You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust web side for new tooling changes (Key -> Keys and OrderOnPage) (#674)
## Description
Adding support for new Tooling side update: adjusting from
`SiteMapping.Key` to `Keys` as well as sorting by `OrderOnPage` since
the new Tooling update changes how sitemap.json is ordered.
### Ensure that your pull request has followed all the steps below:
- [x] Code compilation
- [ ] Created tests which fail without the change (if possible)
- [x] All tests passing
---------
Co-authored-by: Benjamin Michaelis <[email protected]>
Copy file name to clipboardExpand all lines: EssentialCSharp.Web/Services/SiteMappingService.cs
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,4 +12,42 @@ public SiteMappingService(IWebHostEnvironment webHostEnvironment)
12
12
List<SiteMapping>?siteMappings=System.Text.Json.JsonSerializer.Deserialize<List<SiteMapping>>(File.OpenRead(path))??thrownewInvalidOperationException("No table of contents found");
0 commit comments