we developed a customer portal with SAP Fiori. The problem occurred during the users logout. If the user is within a fiori application context, the logout works properly. However, is the user within the portal context (web-content), the logout freezes and a semi transparent logout screen during its loading state is visible.
In the browser developer console, the following error is reciprocated:
Container-dbg.js:808 Uncaught ReferenceError: OData is not defined at k.y [as _suppressOData] (Container-dbg.js:808) at B (Container-dbg.js:1025) at k.logout (Container-dbg.js:1050) at Object.onClose (MeArea-dbg.controller.js:135) at f.G (MessageBox.js?eval:6) at f.a.fireEvent (EventProvider-dbg.js:228) at f.a.fireEvent (Element-dbg.js:431) at f.fireAfterClose (ManagedObjectMetadata-dbg.js:568) at f.h._handleClosed (Dialog.js?eval:6) at constructor.a.fireEvent (EventProvider-dbg.js:228)
At the first glance, I think the solution could be to insert "Odata" within the portal context. Unfortunately, I have no idea how this could be happen. I appreciate any help, thank you.