From dd841e85e0f2cbd6b4a57fb9741111ed7c88df9f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 11 Sep 2024 20:24:23 -0300 Subject: data: WikiInfo: make canonicalBase always end with slash --- src/data/things/wiki-info.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/data/things') diff --git a/src/data/things/wiki-info.js b/src/data/things/wiki-info.js index b7b7b01c..57446f3f 100644 --- a/src/data/things/wiki-info.js +++ b/src/data/things/wiki-info.js @@ -59,6 +59,12 @@ export class WikiInfo extends Thing { canonicalBase: { flags: {update: true, expose: true}, update: {validate: isURL}, + expose: { + transform: (value) => + (value.endsWith('/') + ? value + : value + '/'), + }, }, divideTrackListsByGroups: referenceList({ -- cgit 1.3.0-6-gf8a5