I am using JSF and want to remove/hide cid variable from url which is getting appended in url ? ex. https://1.2.3.4/login.xhtml?cid=33
Asked
Active
Viewed 726 times
-2
-
"which is getting appended" how? – Jasper de Vries Apr 11 '17 at 08:48
-
cid(converstation id) just comes with using Seam, especially when doing redirects. – Astha Kumari Apr 11 '17 at 09:27
-
2So did you do something like [this](https://www.google.com/search?q=seam+adds+conversation+id+to+url) – Kukeltje Apr 11 '17 at 09:29
-
1Possible duplicate of [Disabling seam's redirect filter](http://stackoverflow.com/questions/431652/disabling-seams-redirect-filter) – Kukeltje Apr 11 '17 at 09:31
-
And one of the first links is (imo) a duplicate SO post!... less then 5 minutes searching ;-) – Kukeltje Apr 11 '17 at 09:32
1 Answers
0
Just create a html-link using a relative URL:
<a href="../../login.xhtml">Login</a>
Basically, JSF adds the conversation scope id to outcomes, but not to html URLs.
If you need an absolute URL (i.e., without relative navigation like ../../
), base it on the URL pointing to your JSF web application:
<a href="#{request.contextPath}/login.xhtml">Login</a>
-
In this case it is a jsf version that has no conversation scope knowledge, but it is done by 'seam'. – Kukeltje Apr 19 '17 at 15:24