Supports Gallery links in the helper and added a unit test