# Agents Course links are pointing to broken /docs/ URLs

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367%3E%5C
**Category:** Course\
**Created:** [September 13, 2026, 6:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367 "2026-09-13T18:45:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhaumik9](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bhaumik9](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBhaumik9)%5C
**Post date:** [September 13, 2026, 6:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367%2F1 "2026-09-13T18:46:00Z")

</div>

Hi Hugging Face team,

I’m currently following the Hugging Face Agents Course and noticed that several links are pointing to an outdated `/docs/agents-course/` URL structure.

For example:

- `https://huggingface.co/docs/agents-course/main/en/unit0/onboarding`

- `https://huggingface.co/docs/agents-course/main/en/communication/live1`

These pages return:

> Sorry, we can’t find the page you are looking for.

However, the corresponding pages work under the `/learn/agents-course/` path:

- `https://huggingface.co/learn/agents-course/en/unit0/onboarding`

- `https://huggingface.co/learn/agents-course/en/communication/live1`

It looks like some links in the course/navigation are still referencing the old `/docs/` paths.

Could you please check the Agents Course links and update the outdated URLs?

Thanks!

---

<div class="post-metadata">

**Author:** ![RDTvlokip](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rdtvlokip/32/62725_2.png) [@RDTvlokip](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRDTvlokip)%5C
**Post date:** [September 13, 2026, 7:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367%2F2 "2026-09-13T19:16:25Z")

</div>

- Onboarding: [Onboarding: Your First Steps ⛵ · Hugging Face](https://huggingface.co/learn/agents-course/en/unit0/onboarding)
- Communication/live1: [Live 1: How the Course Works and First Q&A · Hugging Face](https://huggingface.co/learn/agents-course/en/communication/live1)

Same known issue, this has come up a few times recently. The course content lives under `/learn/agents-course/`, some old links/notebooks/nav references still point to the retired `/docs/agents-course/` path and 404. Swapping `/docs/` for `/learn/` in the URL fixes it every time in the meantime, but it needs a HF staff member to actually update the source links, worth tagging a mod or filing it on the course’s GitHub repo (`huggingface/agents-course`) since it keeps resurfacing.

---

<div class="post-metadata">

**Author:** ![calliday](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@calliday](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcalliday)%5C
**Post date:** [September 15, 2026, 10:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367%2F3 "2026-09-15T22:13:08Z")

</div>

You also have to remove “main” from the path!

Also, to simplify fixing it yourself in the meantime, you can simply control+click and it will preserve the path instead of reconstructing the wrong path.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [September 17, 2026, 1:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fagents-course-links-are-pointing-to-broken-docs-urls%2F180367%2F4 "2026-09-17T01:46:03Z")

</div>

Yeah. This issue/topic has been dragging on, it is changing quickly, and there have been quite a few questions about it​😅, so I’ll put the current state in one place for now.

* * *

The short version: **this currently looks like a known navigation regression, not simply a collection of stale `/docs/` links in the Agents Course source.**

The two most useful references are:

- [agents-course #737 — Navigation link seems broken](https://github.com/huggingface/agents-course/issues/737)
- [doc-builder #828 — stop expanding `/learn` course links to `/docs` paths on click](https://github.com/huggingface/doc-builder/pull/828)

The important distinction is that the original link can already be a valid `/learn/agents-course/...` link, but a **normal in-page click can rewrite it to `/docs/agents-course/main/...` before navigation completes**.

So, if the goal is simply to continue the course, the safest workaround for now is to use the corresponding `/learn/agents-course/...` URL directly.

For example:

```plaintext
broken:
https://huggingface.co/docs/agents-course/main/en/unit0/onboarding

working:
https://huggingface.co/learn/agents-course/en/unit0/onboarding

```

If you manually convert one of the broken URLs, note that it is not only:

```plaintext
/docs/ -> /learn/

```

The extra `main/` also disappears.

A very compressed timeline is:

- **Jul 3:** the `doc-builder` Svelte/SvelteKit migration and related client-side navigation changes landed in [#792](https://github.com/huggingface/doc-builder/pull/792) and [#794](https://github.com/huggingface/doc-builder/pull/794).
- **Sep 9–10:** the Agents Course was rebuilt with the newer kit, and [#736](https://github.com/huggingface/agents-course/issues/736), [#737](https://github.com/huggingface/agents-course/issues/737), and [#738](https://github.com/huggingface/agents-course/issues/738) appeared immediately afterward with this `/learn` → `/docs`/404 pattern.
- **Sep 10 onward:** [doc-builder #828](https://github.com/huggingface/doc-builder/pull/828) identified the click-time path expansion and proposed the upstream fix.

As of **September 17, 2026** , #828 is still open, although it has been reviewed/approved.

There is also one deployment boundary worth keeping in mind:

```plaintext
#828 merged
    ↓
Agents Course rebuilt
    ↓
normal live-site navigation verified

```

Those are three different states. “The PR merged” will not necessarily mean “the live course is already fixed” at that exact moment.

> **What seems to be happening**
>
> The explanation in [doc-builder #828](https://github.com/huggingface/doc-builder/pull/828) is quite specific.
> 
> A course link can initially be completely valid:
> 
> ```plaintext
> /learn/agents-course/unit1/what-are-agents
> 
> ```
> 
> But on a normal click, the client-side path helper can expand it to something like:
> 
> ```plaintext
> /docs/agents-course/main/en/unit1/what-are-agents
> 
> ```
> 
> before the Hub’s own navigation handler reads the anchor.
> 
> The observed request path is approximately:
> 
> ```plaintext
> valid /learn/... link
> ↓ normal click
> anchor rewritten to /docs/...
> ↓
> /api/docs/... -> 404
> ↓
> full navigation to /docs/...
> ↓
> 404
> 
> ```
> 
> For courses, the corresponding content is served through the `/learn` side instead, so direct access to the original `/learn/...` URL still works.
> 
> The PR reports a live comparison of roughly:
> 
> ```plaintext
> before:
> /api/docs/agents-course/... -> 404
> /docs/agents-course/... -> 404
> 
> after blocking that rewrite:
> /api/learn/agents-course/... -> 200
> /learn/agents-course/... -> works
> 
> ```
> 
> There was also an independent reproduction in the PR discussion on September 12: the anchor initially pointed to `/learn/agents-course/...`, a normal click produced a failing `/api/docs/...` request and ended at `/docs/...`, while opening the `/learn/...` URL directly worked.
> 
> That is why I would not currently assume that every affected lesson contains an outdated URL in the Agents Course repository itself.

> **A short timeline — how this unfolded**
>
> The timing is useful here because the code change and the visible breakage did **not** happen at the same time.
> 
> ### July 3 — frontend migration
> 
> [doc-builder #792](https://github.com/huggingface/doc-builder/pull/792) upgraded the documentation frontend to Svelte 5 / SvelteKit 2 and related newer frontend tooling.
> 
> This was a substantial frontend migration, but it did not immediately produce the Agents Course reports we are discussing here.
> 
> ### July 3 — shorthand navigation handling
> 
> A follow-up, [#794](https://github.com/huggingface/doc-builder/pull/794), added client-side handling intended to keep shorthand documentation URLs in the address bar during navigation.
> 
> That implementation rewrites the clicked anchor’s pathname during a normal click.
> 
> Importantly, modified clicks such as Ctrl/Cmd/Shift/Alt-click are deliberately excluded from that handler.
> 
> ### July–early September — latent period
> 
> The relevant navigation behavior was now present in `doc-builder`, but the Agents Course had not yet exposed the regression publicly.
> 
> According to #828, the Agents Course was the first course rebuilt with the newer kit after the Svelte 5 migration.
> 
> ### September 9 — Agents Course rebuilt
> 
> The Agents Course was rebuilt with the newer kit.
> 
> Very shortly afterward, reports started appearing.
> 
> [#736](https://github.com/huggingface/agents-course/issues/736) and [#737](https://github.com/huggingface/agents-course/issues/737) were both opened on September 9.
> 
> #737 is particularly useful because it records the navigation behavior rather than merely the final 404: course navigation that should stay under `/learn/...` instead ends up under `/docs/...`.
> 
> ### September 10 — another current-course report
> 
> [#738](https://github.com/huggingface/agents-course/issues/738) reported the same kind of failure while navigating from the **current Agents Course itself**.
> 
> The reporter explicitly noted that this was not an old bookmark or a manually entered historical URL.
> 
> That matters because it weakens the simple explanation that users are only following stale external links.
> 
> ### September 10 — upstream fix proposed
> 
> [doc-builder #828](https://github.com/huggingface/doc-builder/pull/828) connected #736/#737 to the path-expansion logic introduced around #794.
> 
> Its fix is quite small conceptually: `/learn/...` routes should **not** be expanded as though they were shorthand `/docs/...` routes.
> 
> In other words:
> 
> ```plaintext
> /docs/<library>/... -> expansion may be appropriate
> 
> /learn/<course>/... -> leave it alone
> 
> ```
> 
> ### September 12 — independent live-site reproduction
> 
> Another user reproduced the same sequence on the live Agents Course:
> 
> ```plaintext
> anchor initially points to /learn/...
> ↓
> normal click
> ↓
> /api/docs/... request -> 404
> ↓
> navigation to /docs/... -> 404
> 
> ```
> 
> Opening the original `/learn/...` URL directly worked.
> 
> ### September 15–17 — review, but not live yet
> 
> The PR received approvals.
> 
> As of September 17, however, it is still open.
> 
> The PR also states that after it is merged, the Agents Course needs to be rebuilt to pick up the corrected kit; no Agents Course content change should be necessary for this particular fix.
> 
> So the public history currently looks roughly like:
> 
> ```plaintext
> navigation behavior introduced earlier
> ↓
> not yet exposed by the existing course build
> ↓
> Agents Course rebuilt with newer kit
> ↓
> regression becomes visible
> ↓
> multiple reports appear
> ↓
> upstream cause isolated
> ↓
> fix proposed and reviewed
> ↓
> merge / rebuild / live verification still pending
> 
> ```
> 
> I would treat this as a reconstruction from the public issues, PRs, code, and observed behavior rather than an official postmortem.

> **Why Ctrl/Cmd-click can behave differently**
>
> The Ctrl/Cmd-click workaround mentioned in this thread is also consistent with the implementation rather than being just a random browser trick.
> 
> [#794](https://github.com/huggingface/doc-builder/pull/794) deliberately skips the client-side navigation handler for modified clicks, including Ctrl/Cmd/Shift/Alt-click.
> 
> So this pattern makes sense:
> 
> ```plaintext
> normal click
> -> client-side click handler runs
> -> pathname may be rewritten
> -> broken /docs/... navigation
> 
> Ctrl/Cmd-click
> -> handler is skipped
> -> browser follows the original /learn/... href
> 
> ```
> 
> That makes Ctrl/Cmd-click useful both as a temporary workaround and as a diagnostic clue.
> 
> I would still treat it as a workaround, not as the canonical solution. Opening the correct `/learn/...` route directly is clearer and less dependent on the current frontend implementation.

> **How to distinguish this from other 404s**
>
> Not every 404 in the Agents Course has the same cause.
> 
> A cheap way to separate the main cases is:
> 
> ### 1. Does the canonical `/learn/...` page work when opened directly?
> 
> **Yes**
> 
> Continue below.
> 
> **No**
> 
> This may be a different problem involving the lesson itself, the build, routing, or another missing resource.
> 
> ### 2. Does a normal sidebar/Next click change the URL to `/docs/agents-course/main/...`?
> 
> **Yes**
> 
> That matches the #737 / #828 regression very closely.
> 
> **No**
> 
> Look at the exact destination that is failing rather than assuming this regression is involved.
> 
> ### 3. Does Ctrl/Cmd-click behave differently from a normal click?
> 
> **Yes**
> 
> That is another useful indication that the client-side click handler is involved.
> 
> **No**
> 
> It does not completely rule this regression out, but that particular diagnostic signal is absent.
> 
> ### 4. Is the 404 actually coming from a Space, quiz, API endpoint, or file endpoint?
> 
> That is likely a different layer.
> 
> The Agents Course has had unrelated 404 reports involving its supporting services as well. For example, [agents-course #610](https://github.com/huggingface/agents-course/issues/610) involved the scoring service and specific API paths.
> 
> So “404” by itself is not enough to identify the cause.
> 
> The useful details are:
> 
> ```plaintext
> exact URL
> +
> how you reached it
> +
> whether direct access works
> +
> whether ordinary click and modified click differ
> 
> ```
> 
> If stronger confirmation is useful, DevTools → Network can make this particular regression fairly obvious:
> 
> ```plaintext
> affected navigation:
> /api/docs/agents-course/... -> 404
> 
> expected course navigation:
> /api/learn/agents-course/... -> 200
> 
> ```
> 
> That level of debugging should not normally be necessary for someone who just wants to continue the course, but it is useful when confirming or filing a report.

> **About the upstream fix and rebuild**
>
> The proposed fix in [#828](https://github.com/huggingface/doc-builder/pull/828) is intentionally narrow.
> 
> The helper that expands shorthand paths currently also catches `/learn/...`. The PR changes that behavior so only the intended `/docs/...` shorthand path is expanded, leaving course links alone.
> 
> According to the PR, no Agents Course content change is required for this particular regression.
> 
> After the upstream change lands, the course build needs to run again so the deployed course uses the fixed kit.
> 
> That gives three useful checkpoints:
> 
> ```plaintext
> 1. Was #828 merged?
> 
> 2. Was the Agents Course rebuilt after that merge?
> 
> 3. Does a normal sidebar/Next click now remain under /learn/...?
> 
> ```
> 
> If all three are true and the problem still occurs, then it becomes worth reopening the diagnosis.
> 
> Until then, those states should not be collapsed into a single “fixed/not fixed” flag.
> 
> The same distinction is useful for future reports from other courses too. #828 notes that, when it was opened, the Agents Course was the first course rebuilt with the affected newer kit. That makes the regression worth remembering if another course later shows the same very specific signature, but it does **not** mean every Hugging Face course should currently be assumed broken.

> **A note on testing / future regression detection**
>
> There is also a testing angle, although I would keep it secondary to the immediate workaround.
> 
> The Svelte migration in [#792](https://github.com/huggingface/doc-builder/pull/792) included browser-level validation, but this particular issue sits at the integration boundary between the generated course frontend and Hub `/learn` navigation.
> 
> The broader modernization tracker, [doc-builder #796](https://github.com/huggingface/doc-builder/issues/796), also mentions course-repository end-to-end testing as future work.
> 
> That does **not** establish that missing E2E coverage caused this bug.
> 
> It does suggest, however, that a small regression test around:
> 
> ```plaintext
> open course page
> ↓
> click normal sidebar/Next link
> ↓
> assert final URL remains /learn/<course>/...
> ↓
> assert navigation returns successfully
> 
> ```
> 
> would directly exercise this failure mode.
> 
> A static broken-link checker alone may not catch it, because the original anchor can already contain the correct `/learn/...` URL; the failure happens during client-side click handling.

So for anyone landing here mainly because they want to keep taking the course, my default path would be:

1. **Use the matching `https://huggingface.co/learn/agents-course/...` page directly for now.**
2. If normal in-course navigation turns that into `/docs/agents-course/main/...`, it matches the already-tracked regression quite closely.
3. Ctrl/Cmd-click can also be a useful temporary workaround/diagnostic clue.
4. Follow [doc-builder #828](https://github.com/huggingface/doc-builder/pull/828) for the upstream fix.
5. After it merges, check for the Agents Course rebuild and then verify normal sidebar/Next navigation again.

That should hopefully make the current situation easier to follow while also keeping genuinely different Agents Course 404s out of the same “broken link” bucket.
