Problem
I had a requirement to add a link tag where the url redirects to Display form of a item. I was rendering the view using JSLink.
Read my previous posts on JSLink on http://jsuhail.blogspot.com/search/label/JSLink
Solution
Display Form Url
var url = String.format('{0}&ID={1}', ctx.displayFormUrl, ctx.CurrentItem.ID);
Edit Form Url
- var url = String.format('{0}&ID={1}', ctx.editFormUrl, ctx.CurrentItem.ID);
New Form Url
ctx.newFormUrl