skuid.utils.redirect to a record page

Hi MyContactRow.Id has the right value, but when this is called,

                url: ‘/{{{’+MyContactRow.Id+’}}}’,

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

Any Ideas?

backslash vs. forward slash?

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.

yes, that worked. You just need to add the / there too. Thanks.

Good catch! I’ve updated my response accordingly. Thanks!