Skip to content
Snippets Groups Projects
Commit 8671dd73 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix strip check

parent bc32bc7d
No related branches found
No related tags found
2 merge requests!1005fix strip check,!1004fix strip check
Pipeline #18641 passed
...@@ -251,7 +251,15 @@ class PageInMenuMixin(Page): ...@@ -251,7 +251,15 @@ class PageInMenuMixin(Page):
for menu in menu_iterator: for menu in menu_iterator:
if menu.block_type == "menu_item": if menu.block_type == "menu_item":
if menu.value["link"].strip() == instance.full_url.strip(): if (
menu.value["link"].strip()
if menu.value["link"] is not None
else ""
) == (
instance.full_url.strip()
if instance.full_url
else ""
):
return menu.value["title"] return menu.value["title"]
if menu.value["page"] is None: if menu.value["page"] is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment