- Issue created by @misterdidi
- 🇮🇳India bhojwanipankaj05
Issue fixed and implemented with latest release -
https://www.drupal.org/project/solr_search_synonym/releases/2.0.6 →
Thanks @misterdidi
On some projects, it may occur that the /admin paths are rewritten to something else (e.g. on a project, we use
https://www.drupal.org/project/rename_admin_paths →
to override "/admin" with "/administration").
When doing so, any hard-coded path will result into a 404 error because the overriding usually happens on route_alter.
- Install
https://www.drupal.org/project/rename_admin_paths →
and navigate to '/admin/config/system/rename-admin-paths' to rename the admin path to something else (e.g. "administration").
- Install and configure SOLR Search Synonym
- Navigate to the list page of SOLR synonyms
- Click the "Import to Solr" button
- You should end up on a 404 page instead of the batch page.
In SolrSynonymUploaderBatchExport.php, replace :
$redirect_url = '/admin/config/search/solr-search-synonyms';
with :
$redirect_url = Url::fromRoute('entity.solr_search_synonym.collection')->toString();
It will solve the above problem and be more robust if the route path should change in the future for any reason.
Attached is a patch for immediate use.
Include this change in the main module branch.
Active
2.0
Code
Issue fixed and implemented with latest release -
https://www.drupal.org/project/solr_search_synonym/releases/2.0.6 →
Thanks @misterdidi