3 Replies Latest reply on Jun 23, 2017 8:25 AM by jgoldhammer

    How to get the jive url including custom context path in custom view tiles?

    jgoldhammer

      Hello,

       

      we have customers which host Jive on-premise and use a custom context path instead of the root context path.

       

      Example of jive url:

      https://jive.customer.com/sbs/

       

      sbs is the custom context path.

       

      I want to get the full url in a custom view tile.

      I have used following approach:

       

      gadgets.util.getUrlParameters().parent

       

      This returns the host and protocol, but no custom context path.

      https://jive.customer.com/

       

      • Access to window.parent object does not work because of Same-Origin-Policy
      • AFAIK Jive.tile.* methods do not contain this information

       

      As workaround I include the context path for each customer in the custom view tile.

      Is there method?

       

      Environment:

      Jive 9.0.1

      Custom View Tile hosted in Jive

       

      Thanks

      Jens