diff --git a/plugins.js b/plugins.js index 779c335e..721990a0 100644 --- a/plugins.js +++ b/plugins.js @@ -43,7 +43,9 @@ module.exports = ( ) => { It will load from ${pl.serveFrom + '-dupe'} instead.` ) pl.serveFrom += '-dupe' } - pl.canonicalUrl = process.env.CANONICAL_URL + pl.serveFrom + + pl.canonicalUrl = new URL( pl.serveFrom, process.env.CANONICAL_URL ) + } ) winston.debug( `Found ${plugins.length} plugin(s): ${plugins.map( p => p.name ).join( ', ' )}` )