Skip to content

Commit d28d99f

Browse files
committed
docs: mention clean URLs and SEO
1 parent 4dcbecf commit d28d99f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![GitHub Actions](https://github.com/angular-schule/prerender-format/actions/workflows/main.yml/badge.svg)](https://github.com/angular-schule/prerender-format/actions/workflows/main.yml)
55
[![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat-square)](http://opensource.org/licenses/MIT)
66

7-
**Prerender your Angular app as `about.html` instead of `about/index.html`: no more trailing slash redirects! 🚀**
7+
**Nice looking URLs and flawless SEO for your prerendered Angular app: `about.html` instead of `about/index.html`, no more trailing slash redirects! 🚀**
88

99
**Table of contents:**
1010

@@ -30,6 +30,10 @@ Every direct visit (search engine, bookmark, shared link) starts with a redirect
3030
With this builder, the same route becomes `blog/my-article.html`.
3131
Hosts like Cloudflare Pages serve that file under `/blog/my-article` directly, with status 200.
3232

33+
- **Nice looking URLs:** `/blog/my-article`, without a trailing slash, in links, in the address bar and in the server response alike.
34+
- **Flawless SEO:** every page answers directly with 200. Search engines see no redirect, and the URL they crawl is the same one your canonical tag, hreflang links and sitemap point to.
35+
- **Old links keep working:** addresses with a trailing slash redirect to the address without it (measured on Cloudflare Pages, see [Hosts](#hosts)).
36+
3337
This is the option proposed in [angular/angular-cli#29173](https://github.com/angular/angular-cli/issues/29173).
3438
The builder is a stopgap: developed and tested for Angular 22, until Angular has a built-in option and this package is no longer needed.
3539

0 commit comments

Comments
 (0)