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
  • 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.