Hi,
The change in OneDrive embed URLs is part of an effort to streamline and shorten the URLs for better usability and sharing. The new URLs are more concise, making them easier to manage and share, especially in contexts where space is limited, such as social media posts or text messages.
Additionally, these shorter URLs are designed to be more secure and less prone to errors when copied and pasted. They also help in maintaining a consistent and user-friendly experience across different platforms and devices.
It seems this is by design behavior, I'm guessing the reason for this is for some security reasons. I didn't find the relevant official article to provide information. If you have any feedback or suggestion about this behavior, you can try to give a feedback to Microsoft about your requirement:
Microsoft values your opinion. Your feedback goes directly to our engineers and helps us shape the future of Microsoft products and services for all our users.
If the response is helpful, please click "Accept Answer" and upvote it.
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.