react router, match wildcard as parameter
<p>I have a legacy web app that is being replaced with React and it is called by these various systems by being passed a URL (derived from records in and existing DB system) The app renders folder views, of files in a sandboxed container according to the path passed in.  </p>

<p>I need to be able to identify these requests and route them to a File/Folder handing page, treating everything after the '/files/ part of the path down as a parameter to the path of the file or folder.</p>

<pre><code>&lt;Route path="/" handler={Master}&gt;
  &lt;Route name="files_link" path="files" handler={Files} /&gt;
  &lt;Route name="filesWithPath_link" path="files/*:path" handler={Files} /&gt;
&lt;/Route&gt;
</code></pre>

<p>I would like to be able to handle requests passed into</p>

<pre><code>/files  
</code></pre>

<p>and have it handled in the page (defaulting to top level folder because no path parameter passed.</p>

<p>and have all the following examples of possible URL just passed to the router and extract the path parameter from the bit after /files/.</p>

<pre><code>/files/folder                                 path=folder
/files/folder/filename.ext                    path=folder/filename.ext
/files/folder/folder1                         path=folder/folder1
/files/folder/folder1/filename.ext            path=folder/folder1/filename.ext
/files/folder/folder1/folder2/                path=folder/folder1/folder2
/files/folder/folder1/folder2/filename.ext    path=folder/folder1/folder2/filename.ext

.... and so on ...
</code></pre>

<p>When I try this I get an error </p>

<pre><code>Uncaught Invariant Violation: Missing "splat" parameter for path "/beta/page/files/*:path"
</code></pre>

<p>I'm currently using <code>react</code> 0.14.2 and <code>react-router</code> 0.13.4.</p>

<p>How would you go about handling a variable length path in this manner in React-router?</p>