Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Description

This PR fixes legacy redirects that were pointing to a non-existent documentation path. This is a follow-up to PR #924 which fixed the broken link in the MDX file, but left the redirects in next.config.js still pointing to the broken path.

Changes:

  • Updated redirect destination for /documentation/pythnet-price-feeds/off-chain to point to /price-feeds/core/fetch-price-updates (previously pointed to broken path /price-feeds/use-real-time-data/off-chain)
  • Added new redirect for /price-feeds/use-real-time-data/off-chain/price-feeds/core/fetch-price-updates to catch any external references to the old path

This ensures that any bookmarks, external links, or legacy URLs correctly redirect to the correct off-chain applications documentation page.

Type of Change

  • New Page
  • Page update/improvement
  • Fix typo/grammar
  • Restructure/reorganize content
  • Update links/references
  • Other (please describe):

Areas Affected

  • next.config.js - Updated redirect rules in permanentRedirectArray

Checklist

  • I ran pre-commit run --all-files to check for linting errors
  • I have reviewed my changes for clarity and accuracy
  • All links are valid and working (needs verification in preview)
  • Images (if any) are properly formatted and include alt text (N/A)
  • Code examples (if any) are complete and functional (N/A)
  • Content follows the established style guide
  • Changes are properly formatted in Markdown
  • Preview renders correctly in development environment (local build passed)

Related Issues

Follow-up to #924 which fixed the broken link in the MDX file.

Related Slack discussion: https://dourolabs.slack.com/archives/C02HJ4TFLN8/p1761656804671119

Additional Notes

Review Focus:

  • Please test both redirect paths in the preview deployment:
    1. /documentation/pythnet-price-feeds/off-chain should redirect to /price-feeds/core/fetch-price-updates
    2. /price-feeds/use-real-time-data/off-chain should redirect to /price-feeds/core/fetch-price-updates
  • Verify no redirect loops are created
  • Check if the "documentation" Vercel deployment (which failed in PR Fix broken link to off-chain applications #924) passes with these changes

Technical Notes:

  • Redirects are placed before the generic price-feeds catch-all rule to ensure correct precedence
  • Local build passed successfully, confirming no syntax errors in redirect configuration

Contributor Information

Update legacy redirects to point to the correct fetch-price-updates page:
- Updated /documentation/pythnet-price-feeds/off-chain redirect
- Added new redirect for /price-feeds/use-real-time-data/off-chain

This ensures legacy URLs and external references correctly redirect to
/price-feeds/core/fetch-price-updates instead of the non-existent
/price-feeds/use-real-time-data/off-chain path.

Co-Authored-By: [email protected] <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

Prompt hidden (unlisted session)

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Oct 28, 2025 1:40pm
documentation Building Building Preview Oct 28, 2025 1:40pm

@aditya520 aditya520 merged commit 77d3460 into main Oct 28, 2025
4 of 5 checks passed
@aditya520 aditya520 deleted the devin/1761658486-fix-redirect-off-chain-apps branch October 28, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants