Skip to content

Commit 9509c1c

Browse files
author
Rich Harris
committed
make relative-ness of link more obvious
1 parent 3699644 commit 9509c1c

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/02-sveltekit/07-page-options/05-trailingslash

1 file changed

+1
-1
lines changed

content/tutorial/02-sveltekit/07-page-options/05-trailingslash/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: trailingSlash
33
---
44

5-
Two URLs like `/foo` and `/foo/` might look the same, but they're actually different. A relative URL like `bar` will resolve to `/bar` in the first case and `/foo/bar` in the second, and search engines will treat them as separate entries, harming your SEO.
5+
Two URLs like `/foo` and `/foo/` might look the same, but they're actually different. A relative URL like `./bar` will resolve to `/bar` in the first case and `/foo/bar` in the second, and search engines will treat them as separate entries, harming your SEO.
66

77
In short, being loosey-goosey about trailing slashes is a bad idea. By default, SvelteKit strips trailing slashes, meaning that a request for `/foo/` will result in a redirect to `/foo`.
88

0 commit comments

Comments
 (0)