# Issue with Table of Contents Not Creating the Right Link

**URL:** <https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858>\
**Category:** Attributes\
**Created:** [November 27, 2024, 7:35pm UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858 "2024-11-27T19:35:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron2/32/3419_2.png) [@aaron2](https://forum.finsweet.com/u/aaron2)\
**Post date:** [November 27, 2024, 7:35pm UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858/1 "2024-11-27T19:35:30Z")

</div>

Hi there.

We are having issues with the Table of Contents not producing the actual folder or url, so its not working.

**Here’s the staging site link showing the issue** -[Cybersecurity Challenges in 2024: Key Threats & Solutions](https://umetech.webflow.io/blog-posts/navigating-cybersecurity-challenges-in-2024-a-comprehensive-guide)

**See attached image:**

 ![CleanShot 2024-11-27 at 12.31.20@2x](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/d/de4448992c135af69d141e92dace5f9e66cb5fa3.png)

Here is the read-only link: [Webflow - Umetech](https://preview.webflow.com/preview/umetech?utm_medium=preview_link&utm_source=designer&utm_content=umetech&preview=5b65926ac5c37874fe168a94ce1e80ad&workflow=preview)

We have tested this with the Finsweet support tool and it shows as valid but still not working.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [November 28, 2024, 11:43am UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858/2 "2024-11-28T11:43:26Z")

</div>

Hey @aaron2! This is an interesting one, I can see the script is working due to the anchor links and IDs being added to the elements as well as the Table of Contents being created dynamically from the headings found on the Rich Text

What I am unsure of is why it is using the production domain as the base URL. Are there any redirects in place? 🤔

---

<div class="post-metadata">

**Author:** ![aaron2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron2/32/3419_2.png) [@aaron2](https://forum.finsweet.com/u/aaron2)\
**Post date:** [November 28, 2024, 4:58pm UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858/3 "2024-11-28T16:58:54Z")

</div>

Yes we do have redirects setup on the site. We recently migrated from WordPress to Webflow with a new site. So these are standard redirects for the url changes.

However, we have the TOCs working on other sites where we have redirects setup.

And for me that doesn’t explain why the URL for anchor link is not being created properly inside of the Blog post.

Anything we can do to fix or no?

---

<div class="post-metadata">

**Author:** ![aaron2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron2/32/3419_2.png) [@aaron2](https://forum.finsweet.com/u/aaron2)\
**Post date:** [December 2, 2024, 4:45pm UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858/4 "2024-12-02T16:45:45Z")

</div>

Any ideas on what we can do to fix?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [December 3, 2024, 2:57pm UTC](https://forum.finsweet.com/t/issue-with-table-of-contents-not-creating-the-right-link/3858/5 "2024-12-03T14:57:02Z")

</div>

Hey @aaron2, I’ve been taking a look and nothing seems wrong with the setup. the table is being created properly and the links have the correct anchor links.

I asked about potential redirects because even when clicking directly on the HTML `href` redirects to the home page with the anchor link applied to the URL.

Do you have any custom script that may be targeting the links on the page?
