···60606161 // Mention facets (each @handle inside the cc line).
6262 if ( ccLine ) {
6363- const ccIndex = segments.indexOf( ccLine );
6363+ // The cc line, when present, is always the second-to-last segment (before the URL).
6464+ const ccIndex = segments.length - 2;
6465 let local = utf8ByteLength( 'cc ' );
6566 mentions.forEach( ( mention, i ) => {
6667 if ( i > 0 ) {