0

I have an issue on my website which is on CodeIgniter.

All links are making a duplicate copy of each with #! included in URL for example https://www.example.com/port-of-portsmouth link to a page on my website which is duplicated like the below link

https://www.example.com/port-of-portsmouth#!

Both links have the same page content. How to get rid of this error to avoid content duplication

piet.t
  • 11,718
  • 21
  • 43
  • 52

1 Answers1

0
How to get rid of this error to avoid content duplication

You can't

Because # is used as a fragment identifier. For an example, if the URL is https://example.com/#data this means that open the example.com and jump to a specific section of the page with id"data"

See this URL, https://jestjs.io/docs/en/cli.html#cache When you open the page, it jumps to cache section.

So, basically, your content is not duplicated, it's just opening the same page and then browser tries to navigate to id !, which might not be there and hence nothing special happens.

Tejashwi Kalp Taru
  • 2,994
  • 2
  • 20
  • 35