HelloBetterLTD/elemental-seach

causing log out in SS 4.9 admin after publish

Opened this issue · 0 comments

With the update to SilverStripe 4.9 this module is causing a logout to happen after I publish an element. This does not occur in SS4.8.

I use the following settings in my yml:

SilverStripers\ElementalSearch\Model\SearchDocument:
  use_only_x_path: true
  search_x_path:
    - main-content

I can confirm if I remove the use_only_x_path: true line the problem does not occur.

See line 97 SilverStripers\ElementalSearch\Model\SearchDocument

$output[] = Director::test($searchLink);

Calling Director::test() is doing something to the session.