Fis templates dirname in favorite_button template tag.