File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
webdoc-template-library/src/template-plugins Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ async function main(argv: yargs.Argv) {
7070 config . template . siteRoot = config . template . siteRoot . slice ( 1 ) ;
7171 }
7272 if ( config . template . siteRoot . endsWith ( "/" ) ) {
73- config . template . siteRoot . length -= 1 ;
73+ config . template . siteRoot = config . template . siteRoot . slice ( 0 , - 1 ) ;
7474 }
7575
7676 // TODO: Fix what env/conf is?
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ function LinkerPluginShell() {
260260
261261 const rec = this . documentRegistry . get ( doc . id ) ;
262262
263- fileUrl = rec ? this . processInternalURI ( rec . uri ) : this . getURI ( doc ) ;
263+ fileUrl = rec && rec . uri ? this . processInternalURI ( rec . uri ) : this . getURI ( doc ) ;
264264
265265 // Cache this query
266266 if ( fileUrl ) {
@@ -390,7 +390,7 @@ function LinkerPluginShell() {
390390 * @param {string } pathPrefix - The folder path inside which to place the document, if desired.
391391 * @return {string } The filename to use for the string.
392392 */
393- generateBaseURI ( canonicalPath : string , pathPrefix = "" ) : string {
393+ generateBaseURI ( canonicalPath : string , pathPrefix : string = "" ) : string {
394394 let seedURI = ( canonicalPath || "" )
395395 // use - instead of : in namespace prefixes
396396 // replace characters that can cause problems on some filesystems
You can’t perform that action at this time.
0 commit comments