->addWarning($this->t('Please read and understand the options before making any changes.'));
...
...
@@ -43,9 +49,11 @@ class HttpsWwwSettingsForm extends ConfigFormBase {
<li>@line_3</li>
</ul>
',[
'@line_1'=>'Make sure your site is accessible for the options you select before enabling redirects.',
'@line_2'=>'If you don\'t have the "Bypass HTTPS and WWW Redirects" permission and are on a different domain than what you select, you will be logged out when saving.',
'@line_3'=>'Once enabled, avoid making any further changes as it may affect SEO.',
'@line_1'=>$this->t('Ensure your site is accessible for the chosen options before activating redirects.'),
'@line_2'=>$this->t('If you lack the %permission permission and are on a domain different from your selection, you will be logged out upon saving.',[
'%permission'=>$this->t('Bypass HTTPS and WWW Redirects'),
]),
'@line_3'=>$this->t('After activation, refrain from making additional modifications as it may negatively impact SEO (Search Engine Optimization).'),
]
);
...
...
@@ -63,25 +71,21 @@ class HttpsWwwSettingsForm extends ConfigFormBase {
$form['fieldset_2']=[
'#type'=>'fieldset',
'#title'=>$this->t('URL prefix redirect'),
'#title'=>$this->t('Domain WWW prefix'),
];
$fieldset_2=newFormattableMarkup('
@line_1<br>
@line_2
',[
'@line_1'=>'Users will be redirected corresponding to the selected option.',
'@line_2'=>'Make sure your site is accessible for the option selected.',