make next links relative to base path