Stopped characters with poor names from having failed URL's

This commit is contained in:
Stefan Zermatten
2017-07-13 17:16:23 +02:00
parent a411fb2b43
commit ac23afac5d
5 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
Template.registerHelper("characterPath", function(char) {
return `\/character\/${char._id}\/${char.urlName || "-"}`;
});