How to fix embed code problem?

Serhan Genç 0 Reputation points
2025-03-12T19:41:49.6866667+00:00

Hello,

As seen below, the part after src, namely source, is being incorrectly created. I am also leaving the healthy code below. As can be seen, the source link is placed after src, as it should be. However, the broken code above does not work as it should.

Broken Embed Code;


<iframe width="292" height="346" frameborder="0" scrolling="no" src="?waccluster=CH3"></iframe>


Healty Embed Code;


<iframe width="292" height="346" frameborder="0" scrolling="no" src="**https://onedrive.live.com/embed?resid=AF2111D914F343DC%2134775&authkey=%21AIeA7IzVNFSQN4o&em=2&waccluster=GIT1**"></iframe>

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,395 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 15,875 Reputation points Microsoft External Staff
    2025-03-13T05:55:10.0166667+00:00

    Hi @Serhan Genç

    If you open the file and then click the "Embed" option, will the "src" value be generated?

    Please also note, Microsoft has simplified OneDrive embedded URLs, in the embedded URL, the previous "onedrive.live.com" was changed to "1drv.ms", the"resid"(The identifier for the file.) and "authkey"(A key used to authenticate the file’s access) information was removed.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.