Re: Rewrite every *.jsf

Splash Forums PrettyFaces Users Rewrite every *.jsf Re: Rewrite every *.jsf

#20600

enigmasse
Participant

I hate to raise this post from the dead.

Lincoln, you said that the “enable ‘default’ discovery of mappings / removing *.jsf* from URLs” was on the list of enhancements.

I currently have:

<url-mapping>
<pattern> /main </pattern>
<view-id> /main.html </view-id>
</url-mapping>
<url-mapping>
<pattern> /about </pattern>
<view-id> /about.html </view-id>
</url-mapping>
...

It would be great to have one rewrite rule to just remove the “.html” from the URL while preserving parameters if present. I looked through the forums and latest docs and didn’t see an example of this.