[#43636069] Split gallery actions, change ajax behaviour for links