WebsiteBaker Support (2.12.x) > General Help & Support

menu is getting a noopener REL??

<< < (2/2)

jacobi22:
and if you need the target in my example, use


--- Code: ---<a href="[url]" class="[class]" target="[target]"><span>[menu_title]</span></a>
--- End code ---

johnbroeckaert:
I have tried both examples. Unfortunately without consequence. The menu now gives the correct issue, so without a 'noopener' but does not switch to the desired page.
Below is a part of the menu as now in the issue of WB.

showmenu call:

--- Code: ---<?php show_menu2(0,SM2_ROOT,SM2_ALL,SM2_ALL,'[li] <a href="[url]" class="[class]"><span>[menu_title]</span></a>','</li>','[ul]','</ul>',false,'<ul id="nav">');?>
--- End code ---

showmenu output:

--- Code: ---<ul id="nav">
  <li class="menu-first">
         <a href="http://localhost:4001/wbdemo" class="menu-first"><span>Home</span></a>
        etc.
  </li>
</ul>
--- End code ---

I dropped the old call with <!--- and -->, but I saw in the source code that it was executed and  indicated in green. I can not assume that this rule still affects the implementation of the menu?


--- Code: ---<!-- <ul id="nav"><li class="menu-first"><a href="http://localhost:4001/wbdemo" target="_top" rel="noopener" title="HOME">Home</a></li>  etc. </ul>  -->
--- End code ---

johnbroeckaert:
 (Y) (Y)
Solved. It was a false call from within a js file.
Thank you very much for thinking with me!!

Luisehahne:
Other solution is explained in the README_en.txt starting at line 306 GROUP2
    SM2_XHTML_STRICT    From all links, created by [a] or [ac], the 'target' -
                    attribute will be removed to preserve the XHTML-Compatibility

And without a target rel=""noopener" will not be set

Dietmar

Navigation

[0] Message Index

[*] Previous page

Go to full version