Skip to content

Conversation

HonzaTuron
Copy link
Contributor

@HonzaTuron HonzaTuron commented Oct 1, 2025

Closes #1886

Removed invalid links:

  • when there's no pathname
  • fixed links to md files with hash and/or query param
  • add .md to local links

@github-actions github-actions bot added this to the 124th sprint - Web team milestone Oct 1, 2025
@github-actions github-actions bot added the t-web Issues with this label are in the ownership of the web team. label Oct 1, 2025
@apify-service-account
Copy link

Preview for this PR was built for commit 1a491790 and is ready at https://pr-1959.preview.docs.apify.com!

1 similar comment
@apify-service-account
Copy link

Preview for this PR was built for commit 1a491790 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 3069e647 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 15bfbbfb and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 0eb7db26 and is ready at https://pr-1959.preview.docs.apify.com!

1 similar comment
@apify-service-account
Copy link

Preview for this PR was built for commit 0eb7db26 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 0752695a and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit c667bcb5 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 83280569 and is ready at https://pr-1959.preview.docs.apify.com!

@HonzaTuron HonzaTuron requested review from B4nan and katzino October 6, 2025 09:27
@HonzaTuron HonzaTuron marked this pull request as ready for review October 6, 2025 09:28
@apify-service-account
Copy link

Preview for this PR was built for commit ae0ae184 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 760331eb and is ready at https://pr-1959.preview.docs.apify.com!

Copy link
Contributor

@katzino katzino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I go to https://pr-1959.preview.docs.apify.com/api.md I still see
Screenshot 2025-10-06 at 13 25 37

Isn't it supposed to link to /academy.md instead of just /academy?

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment @cursor review or bugbot run to trigger another review on this PR


const parsedUrl = parse(node.url);
const isUrlInternal = isInternal(parsedUrl, config.absoluteUrl);
const url = isUrlInternal ? `${config.absoluteUrl}${parsedUrl.pathname}.md` : node.url;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: URL Handling and Link Classification Issues

The isInternal function receives config.absoluteUrl (a full URL) instead of just a hostname, causing all internal links to be incorrectly classified as external. Additionally, internal URLs are unconditionally appended with .md, which can break links to non-markdown resources.

Fix in Cursor Fix in Web

@apify-service-account
Copy link

Preview for this PR was built for commit f9e20264 and is ready at https://pr-1959.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 7349b82d and is ready at https://pr-1959.preview.docs.apify.com!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-web Issues with this label are in the ownership of the web team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

all internal link in md files have to point to md files instead of html
4 participants