AaronSadlerUK / Umbraco.MegaNavV8

A flexible, draggable link picker for constructing site navigation menus, big or small, in Umbraco V8
MIT License
6 stars 3 forks source link

Update meganavv8.resource.js - expected string, got object #12

Closed auroris closed 4 years ago

auroris commented 4 years ago

On a multilingual site, culture is an object and the method needs a string.

If you select an Umbraco node when creating a meganav menu item it will return a url of '#'. Modifying the line to include the property cultureName fixes the issue and meganav returns the proper url.

auroris commented 4 years ago

Sorry to spam you. Found the real issue; please ignore this pull request.

Issue was actually with meganav8.controller.js where lines 56 and 81 call the getById method in two different ways thus causing the issue.