Fixed gallery links being included in urls