Jump to content

PRIM_MEDIA_CURRENT_URL not returning the updated hash portion of the url


madprgmr
 Share

Recommended Posts

I've been playing around with scripting media prims or the past couple of days, and have run into what I consider to be a bug.

If the hash portion of the url changes due to, say, a javascript action, a call to llGetMediaParams() does not return the updated url.

For example, say my script sends the media object to http://www.example.com/index.html#unchanged. Then, the page's javascript changes the location hash to "changed", and the url is now http://www.example.com/index.html#changed. Calling llGetMediaParams() after the media's control bar reflects the change returns http://www.example.com/index.html#unchanged.

I can work around this problem, but my method results in a non-ideal solution. Does anyone know how to fix this, perhaps?

 

Disclaimer: I'm a SL newbie.

Link to comment
Share on other sites

that would seem to be incorrect behavior, although I can understand why it might be standardized that way.

you may be able to fool it with a trailing slash in the hash, or possibly try the search string instead of the hash (it may treat those as unique)

you may want to file a bug repot to the jira, but I wouldn't hold my breath for a quick fix.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...