cwrc / CWRC-GitWriter

An instance of the CWRC-Writer configured to interact the CWRC-GithubServer which in turn uses Github for document, annotation, and schema storage.
https://cwrc-writer.cwrc.ca/
13 stars 4 forks source link

GitWriter unable to reopen saved documents where "&" has been replaced with "'" #75

Open ilovan opened 4 years ago

ilovan commented 4 years ago

https://cwrc-writer.cwrc.ca/?githubPath=NERVE-apostrophe-error%20&githubRepo=ilovan%2FGit-Writer-tests or https://dev-cwrc-writer.cwrc.ca/?githubPath=NERVE-apostrophe-error%20&githubRepo=ilovan%2FGit-Writer-tests

lucaju commented 4 years ago

Somehow this file was saved with a trailing space at the end. Note how the file name ends with %20: githubPath=NERVE-apostrophe-error%20.

When GitWriter fetches the file it sanitizes the URL removing the trailing space. That is the reason why you cannot open this file in particular. Rename it and remove the extra space in the end.