only apply view mode to url if it is defined