Reply To: URL Encoding – how does it work?

Splash Forums PrettyFaces Users URL Encoding – how does it work? Reply To: URL Encoding – how does it work?

#25742

mfe_
Participant

I’m a litte bit confused because it seems to be all correct. The following code

                               <h:link outcome="/editRecipe.jsf">
                                    <f:param name="recipe" value="#{r.name}" />
                                    bearbeiten
                                </h:link>

produces the hyperlink,

<a href="/wie-koche-ich/edit/recipe/Schwarzw%C3%A4lder-Kirsch-Muffins.html">
                                    bearbeiten
                                </a>

When clicking on the link the Webdeveloper Console / Network displays the following:
Request URL: http://localhost:8080/wie-koche-ich/edit/recipe/Schwarzw%C3%A4lder-Kirsch-Muffins.html
Request Method: GET
Status Code: HTTP/1.1 404 Not Found

So the link and the encoding is ok (I guess), but the page will not be found. Is there a way to hook into this, and find out why there is no proper page?

Do I need to adjust my Rewrite Rule that äöü will be transformed to %C3%A4 and so on?