Skip to content

Redirect check in CI requires redirects for images and snippets #1779

Closed

Description

@shainaraskas

Describe the bug

When I delete a file that is only used as a snippet (stored in a _snippets folder), CI complains and acts like I deleted a docs page. Same for images.

https://github.com/elastic/elasticsearch/actions/runs/17219122920/job/48850014825?pr=129581

Expected behavior

The purpose of our redirect CI check for deleted files is to ensure that we don't have 404s. snippets and images don't represent URLs, so we should be able to refactor and delete them without CI complaining / without requiring a redirect

Steps to reproduce

Delete any snippet, then run CI

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Activity

  1. shainaraskas commented on Aug 26, 2025

    @shainaraskas
    MemberAuthor

    Another reason to get this fixed: snippets don't resolve the same way as URLs, which is causing them to require different syntax than actual pages. e.g., in a repo where docs are built out of a docs folder:

    this page redirect succeeds

      'reference/query-languages/esql/esql-commands.md': 'reference/query-languages/esql/esql-commands.md'
    

    this snippet redirect fails

      'reference/query-languages/esql/kibana/docs/functions/st_geotile_to_long.md': 'reference/query-languages/esql/esql-functions-operators.md'
    

    this snippet redirect passes

      'docs/reference/query-languages/esql/kibana/docs/functions/st_geotile_to_long.md': 'reference/query-languages/esql/esql-functions-operators.md'
    
  2. shainaraskas commented on Aug 26, 2025

    @shainaraskas
    MemberAuthor

    fixed by #1782

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions