Skip to content

Commit 985c877

Browse files
authored
[Docs site] Update UsageList links (#23912)
1 parent 1e5ad79 commit 985c877

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/UsageList.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const { usage } = props.parse(Astro.props);
2929
"/" +
3030
path
3131
.replace("src/content/docs/", "")
32+
.replace("/index.mdx", "")
3233
.replace(".mdx", "")
3334
.split("/")
3435
.map((segment) => {
@@ -42,10 +43,7 @@ const { usage } = props.parse(Astro.props);
4243

4344
return (
4445
<li>
45-
<a
46-
href={"https://developers.cloudflare.com" + slugified}
47-
target="_blank"
48-
>
46+
<a href={slugified} target="_blank">
4947
{slugified}
5048
</a>
5149
<span>

0 commit comments

Comments
 (0)