Fix redirects for off-chain applications page #926
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.jsstill pointing to the broken path.Changes:
/documentation/pythnet-price-feeds/off-chainto point to/price-feeds/core/fetch-price-updates(previously pointed to broken path/price-feeds/use-real-time-data/off-chain)/price-feeds/use-real-time-data/off-chain→/price-feeds/core/fetch-price-updatesto catch any external references to the old pathThis ensures that any bookmarks, external links, or legacy URLs correctly redirect to the correct off-chain applications documentation page.
Type of Change
Areas Affected
next.config.js- Updated redirect rules inpermanentRedirectArrayChecklist
pre-commit run --all-filesto check for linting errorsRelated 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:
/documentation/pythnet-price-feeds/off-chainshould redirect to/price-feeds/core/fetch-price-updates/price-feeds/use-real-time-data/off-chainshould redirect to/price-feeds/core/fetch-price-updatesTechnical Notes:
Contributor Information