Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #170 from speckleworks/plugin-url-fix
Browse files Browse the repository at this point in the history
Small fix to remove duplicate forward slash from pl.canonicalUrl
  • Loading branch information
didimitrie committed Nov 21, 2019
2 parents fd87591 + 9c89d57 commit 759ae8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( ', ' )}` )

Expand Down

0 comments on commit 759ae8a

Please sign in to comment.