generate smart link URL