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?

#25749

mfe_
Participant

Thanks for the suggestion. When removing the regular expression the page
http://localhost:8080/wie-koche-ich/Schwarzw%C3%A4lder-Kirsch-Muffins.html will be loaded without any problems.

My complete pretty-config.xml looks like this:

  <url-mapping id="index">
        <pattern value="/" />
        <view-id value="/index.jsf" />
    </url-mapping>
   
<url-mapping id="viewRecipe">
    <pattern value="/#{recipe}.html" />
    <view-id value="/viewRecipe.jsf" />
</url-mapping>
    
    <url-mapping id="viewIngredient">
        <pattern value="/ingredient/#{ /([a-zA-Z ]*)/ ingredient }.html" />
        <view-id value="/viewIngredient.jsf" />
    </url-mapping>
    

So it seems the regular expression is not matching with the decoded öüä-.
`

  • This reply was modified 8 years ago by  mfe_.
  • This reply was modified 8 years ago by  mfe_.