question

BenHalsey-2382 avatar image
0 Votes"
BenHalsey-2382 asked RenvandenOuden-8236 edited

Does Yammer embed disable the back button in Edge and other browsers?

With Yammer embed on the page the browser back button does not work on the page. This seems like a new problem.

not-supported
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are you facing this issue with other browsers?
How did you embed it?

0 Votes 0 ·

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
});

0 Votes 0 ·

We encounter the same problem. Did you find a solution, or a thread / bug report to track the issue further?

0 Votes 0 ·

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
         );
0 Votes 0 ·

@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.

0 Votes 0 ·

0 Answers