prepareVimeoUrl = (url) => {
  const parsedUrl = parseUrl(url, true);
  if (!parsedUrl.host.includes('vimeo.com')) {
    return url;
  }

  const videoHash = parsedUrl.pathname.replace(/\//g, '');

  // Vimeo video ids are all numeric
  if (!/^\d+$/.test(videoHash)) {
    return url;
  }

  return `http://player.vimeo.com/video/${videoHash}?autoplay=1&loop=1`;
}
Prepares vimeo URL for embed functionality
@param url
@return {*}