Passing a file path as string in javascript via document.location
<p>I have this function:</p>

<pre><code>    function PrintCApplication() {
        cApplication.PrintApplication(applicationID,
             function (isSuccessful, saveFileLocation) {
                 if (isSuccessful) {
                     document.location = '/CApplication/DownloadFile/' + saveFileLocation;
                 }
             });
     };
</code></pre>

<p><strong>saveFileLocation</strong> is a file path in my directory. I want to pass it as string via document.location because I want to download it but when I do it returns a bad request(I guess this is because of backslashes).</p>

<p>saveFileLocation value is <code>C:/Users/Me/Documents/CApplicationTemplate.xlsx</code></p>

<p>This is my sample url that is not working.
<a href="http://localhost:4617/CApplication/DownloadFile/C:/Users/Me/Documents/CApplicationTemplate.xlsx" rel="nofollow">http://localhost:4617/CApplication/DownloadFile/C:/Users/Me/Documents/CApplicationTemplate.xlsx</a></p>

<p><strong>QUESTION:</strong> Is there a way that I could pass a file path via document.location as string? If Yes how? If No, Is there other way?</p>