Fix tab selection on the navbar.

Split API paths by dots to prevent matching of the dots.