Skip to content

Commit 5155a6f

Browse files
committed
docs: name TrailingSlashPathLocationStrategy
1 parent a0d475b commit 5155a6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Static hosts see a folder and redirect `/blog/my-article` to `/blog/my-article/`
3030
So you have to choose:
3131

3232
- **Nice looking URLs, but redirects:** links, canonical tags and sitemap have to use `/blog/my-article`. Every direct visit (search engine, bookmark, shared link) starts with a 301/308 redirect to `/blog/my-article/`, and the Angular router then removes the trailing slash again.
33-
- **No redirects, but trailing slashes everywhere:** links, canonical tags and sitemap have to use `/blog/my-article/`. Pages answer with 200, but every URL ends with a slash, and the Angular router needs extra configuration to keep it.
33+
- **No redirects, but trailing slashes everywhere:** links, canonical tags and sitemap have to use `/blog/my-article/`. Pages answer with 200, but every URL ends with a slash, and Angular needs an extra provider to keep it in the address bar: `{ provide: LocationStrategy, useClass: TrailingSlashPathLocationStrategy }` (from `@angular/common`).
3434

3535
### With this builder: both
3636

0 commit comments

Comments
 (0)