Splash › Forums › PrettyFaces Users › [solved] Dynamic number of ‘/’ characters › Re: [solved] Dynamic number of ‘/’ characters
Congratulations, you found a bug. I’m working on patching it, but am on vacation right now. For the moment, you can do this instead:
“In pretty faces 2.x it was easy and I just needed to make a ‘.*’ at the and of a pattern – i.e: /search/.*, and than just go to some function and parse whole URL, by getting it from PrettyContext.”
Do the same thing. Just call different methods from PrettyContext:
String url = PrettyContext.getCurrentInstance().getRequestURL().getDecodedURL();
String query = PrettyContext.getCurrentInstance().getRequestQueryString().toString();
If you find our tools useful, please consider making a donation to help us stay online and building software!