shorten url in display if over threshold