normalize generated page slugs to lowercase
This commit is contained in:
@@ -153,7 +153,7 @@ $javascriptValue = static function (string $value): string {
|
||||
<span class="label-text"><?= phpb_trans('website-manager.page-title') ?></span>
|
||||
<span class="label-text-alt"><?= phpb_trans('website-manager.required') ?></span>
|
||||
</label>
|
||||
<input type="text" class="input input-bordered w-full" id="<?= phpb_e($languageCode) ?>-page-title" name="title[<?= phpb_e($languageCode) ?>]" value="<?= phpb_e($fieldValue('title', $languageCode)) ?>" @input="if(empty){route=`${locale}/${slugify($event.target.value)}`}" :required="type==='static'" />
|
||||
<input type="text" class="input input-bordered w-full" id="<?= phpb_e($languageCode) ?>-page-title" name="title[<?= phpb_e($languageCode) ?>]" value="<?= phpb_e($fieldValue('title', $languageCode)) ?>" @input="if(empty){route=`${locale}/${slugify($event.target.value,{lower:true})}`}" :required="type==='static'" />
|
||||
</div>
|
||||
|
||||
<div class="grid gap-4 md:grid-cols-2" x-show="type === 'static'">
|
||||
|
||||
Reference in New Issue
Block a user