Skip to content

Commit

Permalink
Revert "Comment out questionable URL changes"
Browse files Browse the repository at this point in the history
This reverts commit e19efaf.
  • Loading branch information
skrustev committed Nov 20, 2024
1 parent bf7190f commit fb70a57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions browser/IgBlazorSamples.Gulp/tasks/gulp-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,17 +463,16 @@ function copySampleScripts(cb, outputPath, indexName) {
}

// indexLines = indexLines.filter((v, i, a) => a.indexOf(v) === i);

var isLocalBuild = __dirname.indexOf('Agent') < 0;
for (let i = 0; i < indexLines.length; i++) {
if (indexLines[i].indexOf('<base href') > 0) {
if (isLocalBuild) {
log('updating <base href="/" /> ');
indexLines[i] = ' <base href="/" />';
} else {
// TODO Refactor this starting with line 467 - this should be a build-time toggle, not a hidden check on a file path dir name
// log('updating <base href="/blazor-client/" /> ');
// indexLines[i] = ' <base href="/blazor-client/" />';
log('updating <base href="/blazor-client/" /> ');
indexLines[i] = ' <base href="/blazor-client/" />';
}
break;
}
Expand Down

0 comments on commit fb70a57

Please sign in to comment.