Welcome Developers!

in

Welcome!

in

Bug: Links from notifications are maleformed

Last post 11-03-2009 1:26 PM by Smart. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-22-2009 12:02 PM

    • Smart
    • Top 75 Contributor
    • Joined on 02-04-2008
    • Posts 54

    Bug: Links from notifications are maleformed

    I'm creating a notification with template params "button0_surface, button0_label, button0_params".  Button0_params is a json encoded set of params to direct users to a specific experience which matches the notification.

    Unfortunately, it appears that the actual link that the user gets sent to when clicking the button is maleformed.  I get:

    http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=104682&appParams={&canvas_source=appnotification


    But the template params I used was:

    'templateParams'    => array(
                    'button0_surface'    => 'canvas',
                    'button0_label'        => _('Check it out'),
                    'button0_params'    => json_encode(array(
                        'z_page'    => 'inbox',
                        'from'        => 'flirt-self-notification'
                    ))
                )

     

    It looks like our button params are stripped out, and replaced with maleformed json. 

  • 10-26-2009 12:21 PM In reply to

    • Smart
    • Top 75 Contributor
    • Joined on 02-04-2008
    • Posts 54

    Re: Bug: Links from notifications are maleformed

     Bump. Can anyone look at this?

  • 11-03-2009 1:26 PM In reply to

    • Smart
    • Top 75 Contributor
    • Joined on 02-04-2008
    • Posts 54

    Re: Bug: Links from notifications are maleformed

    Ok well, didn't get a response.

    To spare others hitting this issue and burning 6 hours of hacking on this, I finally figured out you have to urlencode json parameters.

     Works now.

Page 1 of 1 (3 items)