function handleOpenProduct(action) {
	if ('url' in action.payload && !/^javascript:/.test(action.payload.url.toLowerCase())) {
		window.location.assign(action.payload.url);
	}
}
/**
 * Handle the opening of a product from the HeaderBar
 * Behavior will be extended in the future (interaction with browser extension ...),
 * for now we only handle link opening
 * @param {Object} action
 */
Handle the opening of a product from the HeaderBar
Behavior will be extended in the future (interaction with browser extension ...),
for now we only handle link opening
@param {Object} action
Handle the opening of a product from the HeaderBar Behavior will be extended in the future ( interaction with browser extension ... ) for now we only handle link opening @param { Object } action
function handleOpenProduct(action) {
	if ('url' in action.payload && !/^javascript:/.test(action.payload.url.toLowerCase())) {
		window.location.assign(action.payload.url);
	}
}
function handleOpenProduct ( action ) { if ( 'url' in action . payload && ! / ^javascript: / . test ( action . payload . url . toLowerCase ( ) ) ) { window . location . assign ( action . payload . url ) ; } }
Handle the opening of a product from the HeaderBar
 Behavior will be extended in the future (interaction with browser extension ...),
 for now we only handle link opening
 @param {Object} action
Handle the opening of a product from the HeaderBar Behavior will be extended in the future ( interaction with browser extension ... ) for now we only handle link opening @param { Object } action