Skip to content

Commit

Permalink
Store the full URI in the search results (see contao/core#8331).
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed May 17, 2016
1 parent 427ec16 commit 24614db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/classes/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public static function indexPageIfApplicable(Response $objResponse)
if ($blnIndex)
{
$arrData = array(
'url' => \Environment::get('relativeRequest'),
'url' => \Environment::get('base') . \Environment::get('relativeRequest'),
'content' => $objResponse->getContent(),
'title' => $objPage->pageTitle ?: $objPage->title,
'protected' => ($objPage->protected ? '1' : ''),
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/pages/PageError404.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getResponse()
protected function prepare()
{
// Check the search index (see #3761)
\Search::removeEntry(\Environment::get('relativeRequest'));
\Search::removeEntry(\Environment::get('base') . \Environment::get('relativeRequest'));

// Find the matching root page
$objRootPage = $this->getRootPageFromUrl();
Expand Down

0 comments on commit 24614db

Please sign in to comment.