Jump to content

PRIM_MEDIA_CURRENT_URL not returning the updated hash portion of the url


madprgmr
 Share

You are about to reply to a thread that has been inactive for 3872 days.

Please take a moment to consider if this thread is worth bumping.

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

You are about to reply to a thread that has been inactive for 3872 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...