title: Why does the page change in JSF, but not the URL?
body: <p>I have simple test web-application: 
  First Page - index.xhtml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;html&gt;
   &lt;h:head&gt;
      &lt;title&gt;Facelet Title&lt;/title&gt;
   &lt;/h:head&gt;
   &lt;h:body&gt;
      First page
      &lt;h:form&gt;
          &lt;h:commandButton value="Go to Next page" action="next"/&gt;
      &lt;/h:form&gt;
   &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and Next Page - next.xhtml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;html&gt;
  &lt;h:head&gt;
      &lt;title&gt;Facelet Title&lt;/title&gt;
   &lt;/h:head&gt;
   &lt;h:body&gt;
      Next page
      &lt;h:form&gt;
          &lt;h:commandButton value="Go to First page" action="index"/&gt;
      &lt;/h:form&gt;
   &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I run my application i have that url on browser:</p>
  
  <pre><code>http://localhost:8080/Test/ 
  </code></pre>
  
  <p>and index.xhtml as first page.</p>
  
  <p>Then when I click "Go to Next page" i have url</p>
  
  <pre><code>http://localhost:8080/Test/index.xhtml
  </code></pre>
  
  <p>and next.xhtml page. And when I click "Go to First page" page changes (to index.xhtml) but url its </p>
  
  <pre><code>http://localhost:8080/Test/next.xhtml
  </code></pre>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app&gt;
   &lt;context-param&gt;
       &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
       &lt;param-value&gt;Development&lt;/param-value&gt;
   &lt;/context-param&gt;
   &lt;listener&gt;
       &lt;listener-class&gt;org.apache.myfaces.webapp.StartupServletContextListener&lt;/listener-class&gt;
   &lt;/listener&gt;
   &lt;servlet&gt;
       &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
       &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
       &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
   &lt;/servlet&gt;
   &lt;servlet-mapping&gt;
       &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
       &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
   &lt;session-config&gt;
       &lt;session-timeout&gt;
           30
       &lt;/session-timeout&gt;
   &lt;/session-config&gt;
   &lt;welcome-file-list&gt;
       &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>What should I do to make that the first page in my application has a URL,</p>
  
  <pre><code>http://localhost:8080/Test/index.xhtml 
  </code></pre>
  
  <p>rather than </p>
  
  <pre><code>http://localhost:8080/Test/
  </code></pre>
  
  <p>?</p>
  
  <p>I use  Tomcat (TomEE)/7.0.37</p>