is there any way to get referral group info from core messages widget

Former Member
Former Member

Hi 

Is there any way to get reference group info on core message widget.

Actually we are trying to add user to the group if message id is 31 and group is public open membership group and redirect user back to the reference url.

$core_v2_page.ReturnUrl is giving " /msgs?MessageID=31" instead of the refer url 

Parents Reply Children
  • HI Ben,

     $core_v2_page.ReturnUrl is giving " /msgs?MessageID=31: instead of the group. 

    scenario is if user clicks add post link on a public open membership group, if user is not the member of the group Telligent core messages will come as access denied. 

    Over on core messages widget if we look for $core_v2_page is referring to root instead of the group  

  • In this case, a server-side redirect is used, so it appears that $core_v2_page.Url is also updated from its original value. It appears that this context is not available/persisted through the URL.

    A potential work-around would be to set a cookie for the last-accessed group as the user navigates the site and read this cookie on the error page to implement your logic. This would normally have the correct value and would be subject to the same issues with reading URL values to detect the source context.