11 Replies Latest reply on Apr 25, 2013 9:26 AM by rush_pawan

    Sling mapping issue with Query String

    vgovindaraju

      For a button component, URL behaves differently with query string. Please let me know the sling mapping example for query string.

       

      Button component behavior across env:-

      Working Scenario:-

      - In Author edit mode, URL pointing to "/content/<websitelink>"

      - In Author preview mode shows URL "<host>:<port>/content/<websitelink>.html"

      - In Publisher mode shows URL, "<host>:<port>/<websitelink>", we do not want "/content" before website link so it is fine.

       

      Failure Scenario with query string:-

      - In Author edit mode URL pointing to "/content/<websitelink>?username=han"

      - In Author preview mode with URL "<host>:<port>/content/<websitelink>?username=han"

      - In Publisher mode, <host>:<port>/content/<websitelink>?username=han - Here we see the content, which is not acceptable in our scenario.

       

      Please let me know the mapping changes when we have a URL with query string.