Generate Smart Url