simplify model record links + tolerate undefined plugin in url