Skip to content

Commit

Permalink
Only include query string if using default permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jan 27, 2024
1 parent 73a30be commit 152e4a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,11 @@ private function getCroutonJsConfig($atts, $croutonMap = false)
$params['extra_meetings'] = $extra_meetings_array;

if (empty($params['meeting_details_href'])) {
$params['meeting_details_href'] = $_SERVER["REQUEST_URI"];
if (empty(get_option('permalink_structure'))) {
$params['meeting_details_href'] = $_SERVER["REQUEST_URI"];
} else {
$params['meeting_details_href'] = strtok($_SERVER["REQUEST_URI"], '?');
}
}
$this->options['meeting_details_href'] = $params['meeting_details_href'];

Expand Down

0 comments on commit 152e4a0

Please sign in to comment.