Similar to this question, I have problems with a backslash in my route parameter. The parameter presents a windows folder and subfolder structure, which contains backslashes.
However, every browser (Chrome, Firefox, IE) converts the backslash automatically to a slash.
Controller/Action/Myfolder\Mysubfolder\AnotherSubfolder
Always becomes:
Controller/Action/Myfolder/Mysubfolder/AnotherSubfolder
The parameter presents a windows folder and subfolder structure, which contains backslashes.- forward slashes are the convention for representing directory structures on the web. Just use a catch-all route and convert them. Have you ever seen a URL with backslashes in it?