construct proper url for embedding