skuid.utils.redirect to a record page

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hi MyContactRow.Id has the right value, but when this is called,

             skuid.utils.redirect({
                url: '/{{{'+MyContactRow.Id+'}}}',
                title:'hi',
                window:'blank'
               
            }); 


It's not going to the contact record, instead it goes to the homepage.

Any Ideas?
Photo of Janet

Janet

  • 486 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of J.

J., Official Rep

  • 7,470 Points 5k badge 2x thumb
Official Response
If MyContactRow.Id already has a value, you don't need the curly braces:
url:'/' + MyContactRow.Id,
skuid.model.Model.getFieldValue is the officially supported way to get field values (rather than referencing the row properties directly), but I think that will still work.
(Edited)