Fix link bugs generated from admin templating