Skip to content

Commit

Permalink
remove the stage link, always use live
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsekaean committed Nov 18, 2018
1 parent b7ac7d3 commit ffeca04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Extensions/SearchDocumentGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function getGenerateSearchLink()
$mode = Versioned::get_reading_mode();
Versioned::set_reading_mode('Stage.Live');
$link = Director::absoluteURL($owner->Link());
$link = str_replace('stage=Stage', '', $link);
Versioned::set_reading_mode($mode);
if(strpos($link, '?') !== false) {
return $link . '&SearchGen=1';
Expand Down

0 comments on commit ffeca04

Please sign in to comment.