def decidim_form_slug_url(prepend_path = "", value = "")
      prepend_slug_path = if prepend_path.present?
                            "/#{prepend_path}/"
                          else
                            "/"
                          end
      content_tag(:span, class: "slug-url") do
        [
          request.protocol,
          request.host_with_port,
          prepend_slug_path
        ].join("").html_safe +
          content_tag(:span, value, class: "slug-url-value")
      end
    end
def decidim_form_slug_url(prepend_path = "", value = "")
      prepend_slug_path = if prepend_path.present?
                            "/#{prepend_path}/"
                          else
                            "/"
                          end
      content_tag(:span, class: "slug-url") do
        [
          request.protocol,
          request.host_with_port,
          prepend_slug_path
        ].join("").html_safe +
          content_tag(:span, value, class: "slug-url-value")
      end
    end
Helper method to show how slugs will look like. Intended to be used in forms
 together with some JavaScript code. More precisely, this will most probably
 show in help texts in forms. The space slug is surrounded with a `span` so
 the slug can be updated via JavaScript with the input value.

 prepend_path - a path to prepend to the slug, without final slash
 value - the initial value of the slug field, so that edit forms have a value

 Returns an HTML-safe String.