Generate shortcode from long url