title: Element '<xpath expr="//head/link[last()]">' cannot be located in parent view every time trying to extend portal.frontend_layout in Odoo 14
body: <p>In Odoo 14, I'm trying to add some templates that inherits <code>portal.frontend_layout</code>. But it's throwing 'Element <code>&lt;xpath expr=&quot;//head/link[last()]&quot;&gt;</code> cannot be located in parent view' error.</p>
  <p>The <code>portal.frontend_layout</code> template inherits <code>web.frontend_layout</code>, where I can see that <code>//head/link[last()]</code> code is there &amp; the inherited <code>web.layout</code> DOES have <code>link</code> inside <code>head</code> tag.</p>
  <p>Is it an issue on the base code? or something wrong in my inherited view?</p>
  <p>This is my sample code:</p>
  <pre><code>&lt;template id=&quot;website_menu_header_customized&quot; 
          inherit_id=&quot;portal.frontend_layout&quot; 
          name=&quot;Header Language Link&quot;&gt;
  ....
  &lt;/template&gt;
  </code></pre>