chkal/pf-issue-test — Issue #124: rewrite trailingSlash="append" redirect="301" rewrites and redirects to view-id+"/" and not pattern+"/"
Author: chkal
Created: 2012-03-06 07:40:46+00:00
State: open
Labels: Type-Defect

Originally filed by **eisele.m...@gmail.com** on 2012-01-25T20:09:35

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=126

NOTE: For fastest resolution when reporting an issue, please provide attach
example project or file *with sources* that reproduces the problem.

What steps will reproduce the problem?
1. mvn clean install (or simply import to NB 7.1 and open) attached sample project
2. deploy to GF 3.1.1 (final)
3. try to access http://localhost:8080/uglytest/quotes

What is the expected output? What do you see instead?

The rewrite trailingSlash="append" redirect="301"/
rule in pretty-config.xml should rewrite the URL to: http://localhost:8080/uglytest/quotes/
and redirect the request.

It actually rewrites and redirects to http://localhost:8080/uglytest/faces/list.xhtml/
which is the view-id

What version of PrettyFaces are you using? On what server and version,
version of JSF, and other relevant technologies?
GlassFish Server Open Source Edition 3.1.1
PrimeFaces 3.0.1
prettyfaces-jsf2 3.3.2

Please provide any additional information below.