title: Working around receiving a string containing slashes in flask
body: <p>I'm a newbie to Flask so I'm trying to wrap my head around this problem.</p>
  <p>I'm trying to make a simple request using the following URL:</p>
  <pre><code>@app.route(&quot;/home/components/&lt;component_name&gt;&quot;)
  def get_component(component_name):
    #do something
    return component_data
  </code></pre>
  <p>Which would yield all the data related to a component used in my project.</p>
  <p>Problem is, all component names use slashes (ie: &quot;Process/Newday&quot;, &quot;Exe/ADM1/polling&quot;) which makes it impossible to  pass them through the url, so what I'd need is something akin to this:</p>
  <pre><code>@app.route(&quot;/&lt;components&gt;/*args&quot;)
  def get_component(args):
    component_name = &quot;&quot;
    for arg in args:
      component_name += &quot;/{}&quot;.format(arg)
    #do something
    return component_data
  </code></pre>
  <p>However despite searching here and there I can't find a feasible way to achieve this</p>