diff --git a/Packages/Infrastructure/README.md b/Packages/Infrastructure/README.md index 0ad53b2..50a01f5 100644 --- a/Packages/Infrastructure/README.md +++ b/Packages/Infrastructure/README.md @@ -1,5 +1,5 @@ # Infrastructure -The shared [Hummingbird](https://github.com/hummingbird-project/hummingbird) toolkit the **Loud** services build on: declarative routing, hardened HTTP middlewares, pre-rendered localized responses, and page and asset scaffolding. +The shared [Hummingbird](https://github.com/hummingbird-project/hummingbird) toolkit the platform's services build on: declarative routing, hardened HTTP middlewares, pre-rendered localized responses, and page and asset scaffolding. ## Overview | Role | Types | diff --git a/Packages/Infrastructure/Sources/Public/Middlewares/TrailingSlashRedirectMiddleware.swift b/Packages/Infrastructure/Sources/Public/Middlewares/TrailingSlashRedirectMiddleware.swift index 39344ab..4a77fcd 100644 --- a/Packages/Infrastructure/Sources/Public/Middlewares/TrailingSlashRedirectMiddleware.swift +++ b/Packages/Infrastructure/Sources/Public/Middlewares/TrailingSlashRedirectMiddleware.swift @@ -3,7 +3,7 @@ import Hummingbird /// Answers a request whose path carries a trailing slash with `301 Moved Permanently` to the same path without one. /// -/// The router matches `/mr-rock` and `/mr-rock/` alike, and `FileMiddleware` serves `/robots.txt/` as readily as `/robots.txt`, so without this +/// The router matches `/about` and `/about/` alike, and `FileMiddleware` serves `/robots.txt/` as readily as `/robots.txt`, so without this /// every address on the site answers under at least two URLs. A search engine treats those as separate pages competing with each other, and any link /// earned by one is not credited to the other. Redirecting collapses them onto the form the pages already name as canonical. ///