code-forge-io / code-forge-io/seo-tools

Global handle function for Remix/React Router v7

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
94
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Currently, sitemap generation for Remix / React Router v7 only supports handle functions defined on individual routes.

This works well when route-specific logic is needed, but there’s no way to apply shared logic across all routes.

A common example is generating alternate language links: every route may need the same set of alternates, yet today this logic has to be duplicated in each route’s handle.

One possible approach to support this use case would be to allow using the handle from `root.tsx`, which would run if the individual route doesn't have sitemap handle to be processed.

Let me know if this approach makes sense for the project.

I've already opened a PR for this, is shows best the approach taken,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.