Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ or refuses to for security reasons, automatically follow redirects.
Please note that the inner paths **MUST NOT** end with an explicit trailing slash (e.g. `"things"./`)
for the re-directed-to route to match.

A good read on the subject of how to deal with trailing slashes is available on [Google Webmaster Central - To Slash or not to Slash](https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html).
A good read on the subject of how to deal with trailing slashes is available on [Google for Developers - To Slash or not to Slash](https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash).

See also @ref[redirectToTrailingSlashIfMissing](redirectToTrailingSlashIfMissing.md) which achieves the opposite - redirecting paths in case they do *not* have a trailing slash.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ abstract class PathDirectives extends ParameterDirectives {
* }
* }}}
*
* For further information, refer to: http://googlewebmastercentral.blogspot.de/2010/04/to-slash-or-not-to-slash.html
* For further information, refer to: https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash
*/
def pathEndOrSingleSlash(inner: Supplier[Route]): Route = RouteAdapter {
D.pathEndOrSingleSlash { inner.get.delegate }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ trait PathDirectives extends PathMatchers with ImplicitPathMatcherConstruction w
*
* For further information, refer to:
*
* @see [[https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html]]
* @see [[https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash]]
* @group path
*/
def pathEndOrSingleSlash: Directive0 = rawPathPrefix(Slash.? ~ PathEnd)
Expand Down
Loading