You should add the canonical tag to the header of the page for which you’ve got a non-canonical URL. This can be done by adding the rel=”canonical” tag to the URL.