Make ignoreTitle the default option for hx-swap

Created on 31 July 2024, 4 months ago
Updated 4 August 2024, 4 months ago

Problem/Motivation

By default, if the returned response contains a <title> tag, HTMX replaces the page title. Most of the time we will not want that as our responses will often be replacing some page content but not affecting it so much the title should change.

Proposed resolution

Make ignoreTitle the default behavior but leave it configurable

API changes

We will eventually want to prevent manually adding this option after the strategy. For now we will trigger a deprecation warning.

πŸ“Œ Task
Status

Fixed

Version

1.2

Component

Drupal Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fathershawn New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024