Skip to content

Commit

Permalink
fix: corrected canonical URL, closes #3041
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jul 8, 2024
1 parent 0c34d2e commit 5aea199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions phpmyfaq/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@
//
$faqSystem = new System();
$faqLink = new Link($faqSystem->getSystemUri($faqConfig), $faqConfig);
$currentPageUrl = Strings::htmlspecialchars($faqLink->getCurrentUrl());

//
// Found a record ID?
Expand Down Expand Up @@ -552,7 +551,7 @@
'metaRobots' => $faqSeo->getMetaRobots($action),
'phpmyfaqVersion' => $faqConfig->getVersion(),
'stylesheet' => Translation::get('dir') == 'rtl' ? 'style.rtl' : 'style',
'currentPageUrl' => $currentPageUrl,
'currentPageUrl' => $request->getSchemeAndHttpHost() . $request->getRequestUri(),
'action' => $action,
'dir' => Translation::get('dir'),
'formActionUrl' => '?' . $sids . 'action=search',
Expand Down

0 comments on commit 5aea199

Please sign in to comment.