Index now does not use alias in hook entity create

Created on 31 October 2023, over 1 year ago
Updated 3 March 2024, 12 months ago

Problem/Motivation

Index now does not use alias in hook entity create

Steps to reproduce

1. Currently the index now module indexes the content/taxonomy on below triggers:
ยท When content/taxonomy gets created:
o In this case the module hits the search engine index with URL as :
node/node_id OR term/term_id instead of using alias.

ยท When content/taxonomy gets updated:
o In this case the module hits the search engine index with URL as an alias only.

I understand that alias is not created while creating a node/term may be that's why alias is not used,
i was trying some fixes for it like
Solution: For the scenario : When content/taxonomy gets created,
we can programmatically create URL alias

Issues:
o Since there are variety of path auto patterns set for each content type and taxonomy vocabulary.,
o There may be various tokens being used within these URL alias patterns.
o Apart from this there are some configurations provided by CMS on the fly like converting spaces to - in alias. Transliterate prior to creating alias, change to lowercase etc
o We will have to write a custom code to generate aliases while creating each node type, and taxonomy term type, and handle the above points by custom code.

OR
Is it just a good to have? : For now only while creating content, we are passing the Drupal node/term path instead of alias, and search engines can easily crawl these paths and will be redirected to aliases. So just to save 301 redirects it seems we are doing a lot of custom code if we implement this feature?

Does it really matters if we use a path like www.example.com/node/123 OR www.example.com/topics/mypagewhichhasnodeid-123

I mean the soul purpose of index now is to help search engine crawl urls, but i have no idea if feeding a node/123 kinda url will have any impact whatsoever in crawling OR improving ranking of site etc.

Please let me know, and we can close this straightaway if this feature has no purpose served.
Thanks

โœจ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia saurabh.tripathi.cs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024