Skip to content

Commit

Permalink
Merge branch '6' into 7
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 21, 2024
2 parents 4763bda + 8fe9f6c commit 0563919
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ protected function generatePHPCacheFile($response)
*/
protected function generateHTMLCacheRedirection($destination)
{
return SSViewer::execute_template(
'SilverStripe\\StaticPublishQueue\\HTMLRedirection',
ArrayData::create([
'URL' => DBField::create_field('Varchar', $destination),
])
);
$viewer = SSViewer::create('SilverStripe\\StaticPublishQueue\\HTMLRedirection');
$viewer->setRewriteHashLinks(false);
$viewer->includeRequirements(false);
return $viewer->process(ArrayData::create([
'URL' => DBField::create_field('Varchar', $destination),
]));
}
}

0 comments on commit 0563919

Please sign in to comment.