Clarity

 View Only
  • 1.  URL Redirection in 14.2

    Posted Sep 30, 2015 08:22 PM

    hi,

    in v12 and v13, the CA Services supplied javascript script "pretty display of urls" could be put in an HTML portlet on a specified portlet page, which allowed a user to be redirected to a desired page by clicking on an column entry in an NSQL portlet (by associating a link to the portlet page with the portlet's column).  We used this feature extensively for:

    1. displaying the contents of an attachment

    2. displaying a required page

     

    In 14.2, this no longer works.  For example, clicking on a column entry in one portlet results in

    (v13.2), "#action:url_redirection&go2url=/niku/nu#action:odf.gm_profile_cvProperties&odf_code=gm_profile_cv&odf_view=gm_profile_cv.p_personal_details&id=5010024"

    (14.2), "javascript:navigateToTarget( 'mnp', 'page_5659002', 'url_redirection%26go2url%3D%2Fniku%2Fnu%23action%3Aodf.gm_profile_cvProperties%26odf_code%3Dgm_profile_cv%26odf_view%3Dgm_profile_cv.p_personal_details%26id%3D5010024' )"

     

    In 14.2, the portlet page still gets called, and the javascript gets executed, but crashes.

     

    Does anyone know how to enable URL redirection in 14.2.0.5

     

    Thanks

    Chris



  • 2.  Re: URL Redirection in 14.2

    Posted Oct 01, 2015 12:48 AM

    Is there any error message that you see in the app-ca.log ?

     

    NJ



  • 3.  Re: URL Redirection in 14.2

    Posted Oct 01, 2015 12:53 AM

    hi,

     

    no - nothing in the log.  I've managed to stop the crash (and associated error dialog box), but the redirection isn't happening.  If you're familiar with the script, "go2url" isn't being found in the incoming URL

     

    chris



  • 4.  Re: URL Redirection in 14.2
    Best Answer

    Posted Oct 01, 2015 01:56 AM

    the resolution is to ensure the field in the user portlet that references the link does not have "open as pop-up" set

     

    thanks James!

     

    Chris



  • 5.  Re: URL Redirection in 14.2

    Posted Oct 01, 2015 03:29 PM

    Is this resolution working for anyone? I'm having this issue in our system, but changing the field to turn off "pop-up" didn't fix it. It opens a second tab for the URL Redirect, but it just loads a "Error occurred, contact system administrator"



  • 6.  Re: URL Redirection in 14.2

    Posted Oct 02, 2015 01:32 AM

    Is there any error message that you see in the app-ca.log ?

     

    NJ



  • 7.  Re: URL Redirection in 14.2

    Broadcom Employee
    Posted Oct 21, 2015 04:04 AM

    Hi

     

    In 14.2 I have used the following HTML portlet for redirection & it seems to works well

     

     

     

    <html>

    <p/>

    <p><font size=3>Redirecting... </font></p>

    <p/>

    </html>

    <script language="JavaScript1.2">

    var url = window.document.URL;

    var go2url_loc = url.indexOf('go2url=');

    var go2url = url.substring(go2url_loc + 7);

    window.history.back();

    window.open(go2url, '_blank');

    </script>



  • 8.  Re: URL Redirection in 14.2

    Posted Oct 21, 2015 07:58 PM

    Hi,

     

    Thanks for this.  It seems I still need to have the “open as popup” field unset

     

    chris