Skip to content

Tags added in bulk do not update post routing #22255

@cathysarisky

Description

@cathysarisky

Issue Summary

Adding a tag in bulk does not seem to trigger a recalculation of what collection the the post belongs in. This causing confusing issues for sites with non-default routes.yaml files that use tags for filtering .

Steps to Reproduce

Create two collections. The first one should be filtered by tag.
i.e.

collections:
  /easy/:
    permalink: /easy/{slug}/
    filter: 'tags:[easy]'
  /:
    permalink: /{slug}/
    template: index

Using the list of posts (not the single post editor), bulk assign some posts the 'easy' tag.

Expectation - those posts will appear at /easy/.
Actual - those posts do not appear in the /easy/ collection until they're either individually edited and saved, or until a new copy of routes.yaml is uploaded, or possibly other conditions not yet identified.

The posts do appear in /tag/easy immediately, but it appears that the collection routes aren't getting updated?

Ghost Version

5.109

Node.js Version

all

How did you install Ghost?

several options - doesn't seem to matter?

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions