Download the PHP package tombroucke/acorn-wpml-livewire-fix without Composer
On this page you can find all versions of the php package tombroucke/acorn-wpml-livewire-fix. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tombroucke/acorn-wpml-livewire-fix
More information about tombroucke/acorn-wpml-livewire-fix
Files in tombroucke/acorn-wpml-livewire-fix
Download tombroucke/acorn-wpml-livewire-fix
More information about tombroucke/acorn-wpml-livewire-fix
Files in tombroucke/acorn-wpml-livewire-fix
Vendor tombroucke
Package acorn-wpml-livewire-fix
Short Description Prevents WPML from appending the language path to home_url() when Acorn sets the Laravel root URL, fixing broken Livewire asset and update URLs on translated pages.
License MIT
Package acorn-wpml-livewire-fix
Short Description Prevents WPML from appending the language path to home_url() when Acorn sets the Laravel root URL, fixing broken Livewire asset and update URLs on translated pages.
License MIT
Please rate this library. Is it a good library?
Informations about the package acorn-wpml-livewire-fix
Acorn WPML Livewire Fix
Fixes broken Livewire asset and update URLs when using WPML (or TranslatePress) with Acorn v5.1+.
The problem
Acorn calls URL::forceRootUrl(home_url()) to set the Laravel root URL. WPML filters home_url() to append the current language prefix (e.g. /fr), causing:
livewire.jsto 404/livewire/updateto contain the language segment repeated 3× (e.g.https://example.com/fr/fr/fr/livewire/update)
Installation
1. Require the package:
2. Patch Acorn (until roots/acorn#570 is merged):
Add to composer.json:
Then apply:
All versions of acorn-wpml-livewire-fix with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package tombroucke/acorn-wpml-livewire-fix contains the following files
Loading the files please wait ...