fixed Issue 1528:SQLFORM.smartgrid: Bug in links, thanks jjachuf