Fixes broken gallery page nav for zpmobile