You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a menu item type URL that linked to an external site (e.g. http://www.google.com), but the link was consistently incorrect. I traced the problem to this file:
Around line 104, I think it's supposed to search for a '#' as the first character, but instead matches anything without a '#'. The strpos comparison should be $validonepagelink === 0 not == '0'. So:
I created a menu item type URL that linked to an external site (e.g. http://www.google.com), but the link was consistently incorrect. I traced the problem to this file:
astroid-template-zero/frontend/header/menu/link.php
Around line 104, I think it's supposed to search for a '#' as the first character, but instead matches anything without a '#'. The strpos comparison should be $validonepagelink === 0 not == '0'. So:
if($validonepagelink == '0' && (strlen($item->link) > 1)){
Should be:
if($validonepagelink === 0 && (strlen($item->link) > 1)){
The text was updated successfully, but these errors were encountered: