Link to profile page broken in gallery popup