Library: Explicitly escape "#" characters in path names #3695

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-09-19 23:55:56 +02:00
parent 43655ba591
commit b65362b35a
3 changed files with 15 additions and 5 deletions

View File

@@ -217,7 +217,10 @@ export default {
// Open Edit Dialog
Event.publish("dialog.edit", {selection: [model.PhotoUID], album: null, index: 0});
} else {
this.$router.push({path: '/index/files/' + model.Path});
// "#" chars in path names must be explicitly escaped,
// see https://github.com/photoprism/photoprism/issues/3695
const path = model.Path.replaceAll(":", "%3A").replaceAll("#", "%23");
this.$router.push({path: '/index/files/' + path});
}
},
downloadFile(index) {