When adding the root path with a trailing '/' it will not be able to find a note, because the concatenation of strings make it a '//'. Correctly validate the input / handle paths by normalizing them.