Skip to content

Commit

Permalink
Also activate metadata checks for nojs versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zuuperman committed Sep 19, 2013
1 parent fb2229d commit 4e4baaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion culturefeed_search_ui/includes/helpers.inc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function _culturefeed_search_ui_get_active_search_page() {
foreach ($searchable_types as $key => $type) {

// Check if this is the current page.
if ($type['path'] == $_GET['q']) {
if ($type['path'] == $_GET['q'] || $type['path'] . '/nojs' == $_GET['q']) {

// If this page has active facets in the info definition. Check if all the facets matches.
if (!empty($type['active_facets']) && !empty($query['facet'])) {
Expand Down
2 changes: 1 addition & 1 deletion culturefeed_search_ui/lib/Drupal/CultureFeedSearchPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ protected function build() {
$build['pager-container']['pager'] = array(
'#type' => 'link',
'#title' => t('More results'),
'#href' => $_GET['q'] . '/nojs',
'#href' => strpos('nojs') === FALSE ? $_GET['q'] . '/nojs' : $_GET['q'],
'#options' => array('query' => $params),
'#ajax' => array(),
'#attributes' => array(
Expand Down

0 comments on commit 4e4baaa

Please sign in to comment.