Adding a redirection link

I have put a 301 redirect in place which direct SEOs to prefer the root path… https://domain.com instead of unsecure http://www.domain.com. That’s all fine.

To accompany that it is required to insert the root path inside the of the Home page (index.html). When entering this:

<link rel="canonical" href="https://domain.com/">

in the Page inspector > Extended HTML Attributes, either in Name or Value field, Xway places the code incorrectly like this:

<head ="<link rel="canonical" href="https://domain.com/">"> 

It should correctly be inserted thus:

<head>
<link rel="canonical" href="https://domain.com/">

Am I doing something wrong in the Extended HTML Attributes?
Thanks,
Adrian

Hi Adrian,

<link> is an HTML element rather than the attribute of an HTML element.

The place to add this is in the Generic Markup section of the Page Inspector. If you want it to be added after <head>, choose After <head> from the popup at the top of this section.

Thank you Jeremy,

<!DOCTYPE HTML> 
<html lang="en"> 
<head> 
<link rel="canonical" href="https://clubtype.co.uk/"> 
<meta charset="UTF-8">

Now its in correct place.

Adrian