Problem/Motivation

The autoMute=<0|1> query parameter is not respected.

Steps to reproduce

  1. Go to /admin/config/media/twentythree-widget
  2. Check "Enable query string parameters"
  3. Check "Disable/enable mute (autoMute=<0|1>)"
  4. Create a new media entity embedding a TwentyThree video with autoMute=1 as query parameter
  5. Create a new node with the video.

Proposed resolution

The problem is caused by the order of the two arrays merged at line 123 in TwentyThree.php. Changing

array_merge($query_parameters, $embed_code['#query']);

to

array_merge($embed_code['#query'], $query_parameters);

solves the problem.

Comments

beltofte created an issue. See original summary.

  • beltofte committed 82c94145 on 8.x-1.x
    Issue #3373894 by beltofte: Automute query parameter is not working
    
beltofte’s picture

Status: Active » Fixed
beltofte’s picture

Status: Fixed » Closed (fixed)