Skip to content

Enhancement: Prefer long-tail matches #11

@azeller

Description

@azeller

From an SEO standpoint, preferring a longer string that matches the same text over a shorter string would make more sense.

Let's say we have brand pages, one of them being "BMW" and let's say we have model pages like an "BMW M4 Competition"

"BMW M4 Competition" should definitely match the page for the BMW M4 Competition car and not the page for the BMW brand. Right now, there is no rank for a certain keyphrase defined so Crosslinks will grab whatever it can and match accordingly. It would be great to prefer longer phrases over short ones.

This might be as simple as sorting the possible matches descending by string-length first and then start link replacement.

I'd be glad to hear some feedback, because I will probably not be the first person to ask for this. In the meantime we can have a look at the code and provide a PR for this.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions