There are four methods of solving the problem, in order of preference:
- Not creating duplicate content.
- Redirecting duplicate content to the canonical URL.
- Adding a canonical link element to the duplicate page.
- Adding an HTML link from the duplicate page to the canonical page.
For More Information Please Refer: https://yoast.com/duplicate-content/