Skip to content

issue: Documentation Split-Brain: Apex domain (v7+) and www subdomain (legacy) serve completely different versions #1220

Description

@mhdshrz

Version Number

N/A (Documentation / Hosting Issue)

Codesandbox/Expo snack

https://react-hook-form.com vs https://www.react-hook-form.com

Description

There is a deployment/DNS misconfiguration causing the www subdomain to serve a legacy, frozen-in-time version of the documentation, while the apex domain serves the modern, up-to-date documentation.

Steps to reproduce

  1. Go to the apex domain: https://react-hook-form.com/docs/useform/seterror/
    • Observation: Shows modern V7+ docs. setError type is documented as ErrorOption, and there are more cards in the API section at https://react-hook-form.com/docs/.
  2. Go to the www subdomain: https://www.react-hook-form.com/api/useform/seterror/
    • Observation: Shows outdated, legacy docs. setError type is documented strictly as FieldError, and there are fewer API cards at https://www.react-hook-form.com/api/.

Expected behaviour

Traffic to www.react-hook-form.com should permanently redirect (301) to the apex domain react-hook-form.com so developers aren't accidentally served outdated API types and legacy documentation.

What browsers are you seeing the problem on?

Firefox

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions