4 Replies Latest reply on Mar 17, 2009 12:52 AM by Christian Bauer

    Hiding cid's

    John Ament Master

      Hey,


      I'm curious, how does this site hide the cid's in the links?  On my live site, they're shown.  While not affecting anything, i think they look bad, especially with the url rewriting I have.


      Anyone?

        • 1. Re: Hiding cid's
          marx3 Apprentice

          I would like to know too...

          • 2. Re: Hiding cid's
            Arbi Sookazian Master

            read section 9.3 in Yuan/Heute 2nd ed. Seam book on natural conversations.


            you can also download the source code for the book here: http://solutionsfit.com/seam


            the natural booking example is the one you're interested in...



            Explicit synthetic conversation IDs are now deprecated; use natural conversations instead.
            • 3. Re: Hiding cid's
              Arbi Sookazian Master

              well it gets a bit confusing.  I just checked the book and it states the following:



              Seam implements a very simple approach to configuring navigable URLs.  First, you need to add the following snippet to your components.xml file to enable URL rewriting:



              <web:rewrite-filter view-mapping="*.seam"/>



              But I don't see this in the booking example source code (there is no separate naturalbooking example in the download).


              I do see this:


              urlrewrite.xml:


              <?xml version="1.0" encoding="utf-8"?>
              
              <!DOCTYPE urlrewrite
                  PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN"
                  "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">
              
              <urlrewrite>
                   
                   <rule>
                        <from>^/confirm/([A-Za-z0-9]*)$</from>
                        <to last="true">/confirm.seam?hotelId=$1</to>
                   </rule>
                     
                  <outbound-rule>
                      <from>/confirm.seam\?hotelId=([A-Za-z0-9]*)</from>
                      <to>/confirm/$1</to>
                  </outbound-rule>
                  
                   <rule>
                        <from>^/book/([A-Za-z0-9]*)$</from>
                        <to last="true">/book.seam?hotelId=$1</to>
                   </rule>
                 
                  <outbound-rule>
                      <from>/book.seam\?hotelId=([A-Za-z0-9]*)</from>
                      <to>/book/$1</to>
                  </outbound-rule>
                  
                   <rule>
                        <from>^/hotel/([A-Za-z0-9]*)$</from>
                        <to last="true">/hotel.seam?hotelId=$1</to>
                   </rule>
              
                  <outbound-rule>
                      <from>/hotel.seam\?hotelId=([A-Za-z0-9]*)</from>
                      <to>/hotel/$1</to>
                  </outbound-rule>
              </urlrewrite>