diff --git a/book/asciidoc/routing-and-handlers.asciidoc b/book/asciidoc/routing-and-handlers.asciidoc index b20e39e..cd0f96e 100644 --- a/book/asciidoc/routing-and-handlers.asciidoc +++ b/book/asciidoc/routing-and-handlers.asciidoc @@ -195,7 +195,7 @@ Consider the following route declaration: Let's say a user requests the path +/hello/+ – which handler would respond to the request? It will be +HelloR+ because Yesod's dispatch mechanism removes trailing slashes and -redirects to the canonical form of the URL (see section <<_pieces>>). +redirects to the canonical form of the URL. If users actually want to address the +HelloNameR+ handler with an empty string as argument they need to request the path +/hello/-+ diff --git a/book/generated-xml/routing-and-handlers.xml b/book/generated-xml/routing-and-handlers.xml index 0f7e4a4..d98ef2b 100644 --- a/book/generated-xml/routing-and-handlers.xml +++ b/book/generated-xml/routing-and-handlers.xml @@ -195,7 +195,7 @@ should /foo/bar route to Foo1R or Let’s say a user requests the path /hello/ – which handler would respond to the request? It will be HelloR because Yesod’s dispatch mechanism removes trailing slashes and -redirects to the canonical form of the URL (see section ). +redirects to the canonical form of the URL. If users actually want to address the HelloNameR handler with an empty string as argument they need to request the path /hello/- instead. Yesod automatically converts the Minus sign to the empty string.