Anchor links break when related link not in search result

Anchor links break when related link not in search result

Noodles12Noodles12 Posts: 113Questions: 41Answers: 2

I have a datatable where I am using anchor links throughout the datatable. The anchor links navigate throughout the same table and I also have search enabled on the page.

Please see my test case below - Search works however when I search for John, I get results B and C. The anchor link to Julie doesn't work since the search results do not include D (Julie is linked to D). Is there a way to make the link work?

**Entry ****Details **
A Joe
B John - hyperlinked to B
C Julie (hyperlinked to D) John - hyperlinked to B
DJulie - hyperlinked to D

Answers

  • kthorngrenkthorngren Posts: 21,341Questions: 26Answers: 4,954

    Search works however when I search for John, I get results B and C.

    This makes sense.

    The anchor link to Julie doesn't work since the search results do not include D (Julie is linked to D). Is there a way to make the link work?

    This is a bit confusing. Not sure how these links actually work. Without seeing what you are doing its hard to offer suggestions. Please provide a test case along with steps to recreate the problem and what you would like to happen instead.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • Noodles12Noodles12 Posts: 113Questions: 41Answers: 2

    I know. It is a bit confusing. Please ignore. I found a workaround to this problem. I am opening all anchor links in new tab now.

    Thanks.

Sign In or Register to comment.