-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Preconditions (*)
Snowdog_Menu module version : 2.29.0
Description (*)
When changing a category node type to a custom type in the menu, an unexpected number appears in the "Custom URL" field. then on the frontend, opening that custom type node redirects to a URL containing that number.
Steps to reproduce (*)
1.Go to Admin > Content > Menus.
2.Add a new category type node and save that node (screenshot-2).
3.Open the same node and change the node type from category to custom url and save that.
4.Now observe that an unwanted number appears in custom url section (screenshot 1)
Expected result (*)
When changing a category node to a custom URL type, the Custom URL field should remain empty.
Actual result (*)
After changing the node type from category to custom URL, an unwanted number appears in the Custom URL field, and opening that node on the frontend redirects to a URL containing that number
Additional information(*)
When a category node type is initially created, a category ID is generated and stored in the database (screenshot-3). However, if the node type is later changed to Custom URL, the previously assigned category ID is not removed from the content. As I have checked in this file Snowdog\Menu\Block\NodeType\CustomUrl (see screenshot-4), and found that the value being displayed is actually the previously stored category ID rather than the expected custom URL content.
Screenshot-3:
Screenshot-4:


