Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: appropriately set prevRoute and nextRoute in getRouteMeta.tsx #6769

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 23, 2024

  1. fix: appropriately set prevRoute and nextRoute in getRouteMeta.tsx

    at the moment, on the blog, the link to the previous route is actually the next route and that of the next route, is the article before the current one (the open page).
    
    that default comes from this file and to fix it, i set `prevRoute` to `ctx.route` initially and when the current route is found, `prevRoute` is assigned the last breadcrumb if the current index is greater than 1.
    idorenyinudoh committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    8c88492 View commit details
    Browse the repository at this point in the history