Gravatar for

Question by AlexShapo, Mar 27, 2018 3:22 PM

How to merge urls?

I have the following url which contain our press releases:

that page have paging, which is implemented using querystring, like this:

All our links on that page looks like this, with ?page=1 in querystring, that is done to have "back" button work

and the issue is when indexing that pages, coveo somehow finds two URLs, one with querystring, and another without.

I understand where is the first URL coming from, but have no idea where it found second, without querystring.

The issue is, on search results page we have duplicate for every press releases

One URL with querystring and second without. I need a way to merge them or show only one, does not matter which one.

I tried excluding ?page from my WEB source, but in that case it shows no results. I also tried the following configuration and exclusion filter, but did not helped.

"parameters": {
      "ExpandBeforeFiltering": {
        "sensitive": false,
        "value": "true"

Is it possible to have an extension which will fix this? I tried, but looks like extensions does not have access to "uri" and "sysuri" field, so I can't modify them. Any ideas how can I do it?

Source: WEB
Site URL:
Inclusion Filter: [star]/news-and-media/releases/show/[star]

1 Reply
Gravatar for

Answer by Francois Verpaelst, Mar 27, 2018 3:46 PM

Hi! Pages with query parameters in their URL are usually listing pages, which should not be indexed. However, if you exclude them, the crawler will struggle to reach the pages referenced in these listing pages. I would rather let the crawler reach all the pages, but then reject the listing pages with a REGEX in a Python extension.

If your index is in a Cloud V2 org, you should be able to use document.uri to access/manipulate the url.

Ask a question