Skip to content

feat(admin): show meta robots above the canonical link, and update the screenshot - #77

Merged
Fredxd merged 2 commits into
AppoloDev:mainfrom
Vondry:feat/robots-above-canonical
Oct 25, 2026
Merged

Fredxd merged 2 commits into
AppoloDev:mainfrom
Vondry:feat/robots-above-canonical

Conversation

@Vondry

@Vondry Vondry commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR has two commits:

  1. feat(admin): moves the Meta Robots Tag field above the Canonical Link field in the SEO field's edit form.
  2. docs(readme): replaces screenshots/screenshot.png, the image in the README's "Setup" section, with an up-to-date Bolt 6 screenshot that shows the new order.

It replaces #75, which only updated the screenshot.

1. Field order

The robots setting is changed far more often than the canonical link or the Open Graph type, so it now comes right after the snippet preview:

Before After
SEO Title SEO Title
Meta description Meta description
(Meta keywords, hidden by default) (Meta keywords, hidden by default)
Google snippet preview Google snippet preview
Canonical Link Meta Robots Tag
Meta Robots Tag Canonical Link
Open Graph Type Open Graph Type

Only the order of the fields in the form changes. In templates/seo.html.twig, two {{ block() }} lines swap places. The field ids, the input names, the stored JSON and the front-end output stay the same. seo.js finds the fields by id, so it does not depend on their order.

A new test, SeoFieldTemplateTest::testFieldsAreRenderedInTheAdminOrder, renders the whole field and checks the order. It fails on main.

2. Screenshot

The old screenshot came from the Bolt 5 admin:

  • the group label was French ("Référencement");
  • both fields showed a 70-character limit, but the defaults are now 60 for the title and 158 for the description;
  • it still showed the Shortlink (alias) field, which refactor(field): remove the Shortlink field #72 removed;
  • some help texts have changed since then.

The new screenshot:

  • shows the SEO field's tab in the Bolt 6.1.10 admin, in English, with the extension's default config and the new field order. The keywords field is hidden, because keywords_length is 0 by default;
  • was taken on a fresh Bolt 6 install running this branch, with the seo field added to pages as the README describes. English example values were typed into the form, so the snippet preview shows the live title, the postfix and the description. Nothing was saved;
  • is taken at 2x for high-DPI screens (1490 × 1722, 218 KB).

Tests

The robots setting is changed far more often than the canonical link or
the Open Graph type, so it now comes right after the snippet preview:

title, description, (keywords), snippet preview, meta robots,
canonical link, Open Graph type.

Only the order of the fields in the edit form changes. The field ids,
the names and the stored JSON stay the same.
The old screenshot came from the Bolt 5 admin: a French group label,
70-character limits on both fields, the removed Shortlink field and
outdated help texts.

The new one shows the SEO tab in the Bolt 6.1.10 admin with the default
config, in English, with the meta robots field above the canonical link.
It is taken at 2x for high-DPI screens.
@Fredxd
Fredxd merged commit a3bf5db into AppoloDev:main Oct 25, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants