With Yammer embed on the page the browser back button does not work on the page. This seems like a new problem.
With Yammer embed on the page the browser back button does not work on the page. This seems like a new problem.
Yes - Same in all browsers.
These are the options I am setting:-
yam.connect.embedFeed({
feedType: "open-graph",
config: {
"use_sso": true,
header: scope.header,
footer: scope.footer,
showOpenGraphPreview: false,
defaultToCanonical: false,
hideNetworkName: false,
defaultGroupId: groupId,
promptText: "WhatDoYouThinkAbout"
},
objectProperties: {
url: Url,
description: "JoinTheConversation",
title: "test",
type: "page",
fetch: true,
private: false,
"ignore_canonical_url": false
},
container: "." + scope.container,
network: data.yammer.network
});
We encounter the same problem. Did you find a solution, or a thread / bug report to track the issue further?
Fixed for now as follows:
yammerContainer.addEventListener(
'DOMNodeInserted',
(event) => {
iFrame = event.target as HTMLIFrameElement;
let loadCount = 0;
iFrame.addEventListener(
'load',
() => {
/*
* Iframe loads when .src is set (Yammer loading) and when browser back button is pushed.
* Act only on second load, which is a refresh after browser back button click.
*/
if (loadCount >= 2) top.history.go(-1);
loadCount++;
},
false
);
},
false
);
@BenHalsey-2382
As the issue exists in all browsers, it's Yammer's issue. Yammer is currently not supported in the Q&A forums, the supported products are listed over here: https://docs.microsoft.com/en-us/answers/products (more to be added later on).
For the related questions about Yammer you can ask in here https://techcommunity.microsoft.com/t5/yammer/ct-p/Yammer.
5 people are following this question.