This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new 8c2ab67aa fix broken Google link (#1006)
8c2ab67aa is described below
commit 8c2ab67aa618e80e07dba6af2bd67c7c5d27e1e1
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Apr 13 14:16:30 2026 +0200
fix broken Google link (#1006)
---
.../directives/path-directives/redirectToNoTrailingSlashIfPresent.md | 2 +-
.../apache/pekko/http/javadsl/server/directives/PathDirectives.scala | 2 +-
.../apache/pekko/http/scaladsl/server/directives/PathDirectives.scala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/docs/src/main/paradox/routing-dsl/directives/path-directives/redirectToNoTrailingSlashIfPresent.md
b/docs/src/main/paradox/routing-dsl/directives/path-directives/redirectToNoTrailingSlashIfPresent.md
index 05e7e76f1..1378c259a 100644
---
a/docs/src/main/paradox/routing-dsl/directives/path-directives/redirectToNoTrailingSlashIfPresent.md
+++
b/docs/src/main/paradox/routing-dsl/directives/path-directives/redirectToNoTrailingSlashIfPresent.md
@@ -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.
diff --git
a/http/src/main/scala/org/apache/pekko/http/javadsl/server/directives/PathDirectives.scala
b/http/src/main/scala/org/apache/pekko/http/javadsl/server/directives/PathDirectives.scala
index e6cf280ff..c60ce1ef8 100644
---
a/http/src/main/scala/org/apache/pekko/http/javadsl/server/directives/PathDirectives.scala
+++
b/http/src/main/scala/org/apache/pekko/http/javadsl/server/directives/PathDirectives.scala
@@ -75,7 +75,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 }
diff --git
a/http/src/main/scala/org/apache/pekko/http/scaladsl/server/directives/PathDirectives.scala
b/http/src/main/scala/org/apache/pekko/http/scaladsl/server/directives/PathDirectives.scala
index 1b2279a31..54a84477e 100644
---
a/http/src/main/scala/org/apache/pekko/http/scaladsl/server/directives/PathDirectives.scala
+++
b/http/src/main/scala/org/apache/pekko/http/scaladsl/server/directives/PathDirectives.scala
@@ -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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]