-2

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

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102

1 Answers1

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