@agendartobias opened this Issue on January 6th 2021

A given page is being tracked as two separate pages due to trailing slashes in the URL. For example:


Is there any way to make Matomo recognize that the two URLs are actually a single page?

@mobiliodevelopment commented on January 6th 2021

Actually this are two different URLs and should be counted independent.

/login -> /login
/login/ -> /login/index.html or index.htm

@tsteur commented on January 10th 2021 Member

Hi @agendartobias AFAIK there isn't a way yet to recognise the two URLs as a single page. It's unlikely we'll work on this as it is technically two different URLs. However, I'll keep the issue open as someone should be able to implement this feature in a plugin without too much effort. Happy to guide them in the right direction if someone is keen.

@dl-lim commented on June 8th 2021

I agree with this issue. It is skewing how the data is presented when we pull from this to other BI solutions, unless plenty of transformation is being performed at a granular level.

Actually this are two different URLs and should be counted independent.

/login -> /login
/login/ -> /login/index.html or index.htm

If this is the case, then /login/ should already be logged as /login/index.html . What is the point of logging /login/ then?

By this, shouldn't / be the largest then, since ALL visits go thru / ? - which actually isn't the case in our data. It appears to be inconsistent where this is applied.

@artus70 commented on June 22nd 2021

The URL /login could mean the same as /login/, but it doesn't have to. Therefore, I plead for it to become configurable.

By being able to combine it, cases like this (same URL as single page and as directory) could be avoided:


(I'd love to have the upper URL shown/positioned as the index page of the lower URL instead of being shown separately!)

@vladimir-shmidt commented on January 13th 2022

Usually server treat /login and /login/ the same. index.html or index.php is the next level of discussion but there is a good approach to combine (group) such requests and treat as the same url

I wonder have matomo some ability or extension point to solve it?

I thought it is SPA problem with router but haven't found anything criminal - client can put what ever he want's like login and login/ and login/?variable=value even application don't have any variables. So client redirection can solve trailing slash a bit but it is much easy to group queries in matomo statistics for me (in case there is a way to do it :) )

Powered by GitHub Issue Mirror