Method signature
Changes current URL on Odnoklassniki for user.
FAPI.UI.changeHistory(newUrl)
Example usage
/*
* Changes current URL on Odnoklassniki for user
*/
function changeHistory(newUrl){
FAPI.UI.changeHistory(newUrl);
}
Additional information
Method sets only the part of URL which follows after “?” delimiter. I.e.:
- current user’s URL - https://ok.ru/game/someGame
- FAPI.UI.changeHistory(“additionalPathValue”) is invoked;
- URL changes to https://ok.ru/game/someGame?additionalPathValue
If method is invoked when URL already has some value set after “?” that value is replaced by a new one. I.e.:
- current user’s URL - https://ok.ru/game/someGame?additionalPathValue
- FAPI.UI.changeHistory(“newAdditionalPathValue”) is invoked;
- URL changes to https://ok.ru/game/someGame?newAdditionalPathValue