New answers tagged

0

For D7: Under the Configuration -> Search and Metadata -> Search_API and then go to the Algolia Index and Filters tab (path will be like: /admin/config/search/search_api/index/algoliaindex/workflow, where algoliaindex is the machine name of your Algolia index), then under Data Alterations->Enabled data alterations check the URL field box. This ...


1

Normally the internal links /taxonomy/term/% are not used anymore, because all links Drupal puts on the page are aliased. If you want to prevent having multiple paths for the same page you can install https://www.drupal.org/project/redirect. From the project page: D8: Maintaining a canonical path and redirecting alternative URL's like non-aliased path, ...


0

I've created a module and is busy adding it to Drupal site. The code is available here for download. https://github.com/hornlp/drupal_path_guard The intended use of the module is to redirect GUEST / ANONYMOUS users when they access content in Drupal using URL /node/{id}. Many sites make use of URL ALIAS and don't want users necessarily to scan content out of ...


4

You have a typo in your services.yml file, you misspelled arguments. Additionally, for a service, you don't need to (and shouldn't) define the create method. Your dependent services are injected from services.yml, but keep your constructor as is. The only time you need to define the create method to inject dependencies is when working with plugins, ...


-1

Sorry it was a spelling mistake argumrnts: ['@pathauto.generator','@pathauto.alias_cleaner'] should be arguments: ['@pathauto.generator','@pathauto.alias_cleaner'] Do not need even create method but got confused.


0

The "Sub-pathauto (Sub-path URL Aliases)" module also does the trick (and has an official D8 version as well).


Top 50 recent answers are included