Problem/Motivation

When Ajax is enabled in views and "Did you mean" is implemented, the URL fails because use the ajax path /views/ajax instead URL form view.

Steps to reproduce

Follow instructions in https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-ho... and as final step enable ajax in the display view.

Proposed resolution

Implements similar solution like this issue: https://www.drupal.org/project/drupal/issues/2820347

Comments

aldibier created an issue. See original summary.

frouco’s picture

Status: Active » Needs review
StatusFileSize
new1.3 KB
damienmckenna’s picture

A minor thing - there's an extra space after the equals sign:

+    $currentQuery =  $this->getCurrentQuery();

That could be fixed during commit.

3li’s picture

Status: Needs review » Reviewed & tested by the community

Patch merged and worked with 8.x-3.0-beta1

damienmckenna’s picture

Version: 8.x-3.0-alpha1 » 8.x-3.x-dev
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.07 KB
new975 bytes

Does this solve the problem too? I condensed the $path assignment into one if() statement instead of two.

liampower’s picture

Status: Needs review » Reviewed & tested by the community

#5 worked for me. Thanks!

  • mkalkbrenner committed 33c48d4 on 8.x-3.x authored by frouco
    Issue #3211514 by DamienMcKenna, frouco, aldibier, LiamPower, 3li,...
mkalkbrenner’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.