How to make scene URLs work even when exported as OAM file

An OAM widget creates an iframe, so you would need to dynamically adjust the iframe's src code to be http://example.com/hypeDocument.html into something like http://example.com/hypeDocument.html#sceneName if you're using the Scene URL JS code you linked. Since this reloads the JavaScript, there will be a brief flash as content is loaded, so it may not be the best solution for a seamless linking experience.