This namespace contains functions related to redirection, url and query string.
spa.web.reload(ReloadFromServer)
Reload the current page.
Parameter | Type | Description |
---|---|---|
ReloadFromServer |
boolean |
If set to false , then cache is ignored and page resource is fetched from server.
|
spa.web.redirect(url)
Redirect to new url.
Parameter | Type | Description |
---|---|---|
url |
string |
The new url |
spa.web.newTab(url)
Open an url in new tab.
Parameter | Type | Description |
---|---|---|
url |
string |
Url |
spa.web.getUrlWithQueryString()
Get the current url with the query string.
spa.web.getUrlWithoutQueryString()
Get the current url without the query string.
spa.web.getQueryString(name)
Get the current query string.
Parameter | Type | Description |
---|---|---|
name |
string |
Optional parameter. If specified, the function look for query string key name and return it's value.
If not specified, the full query string is returned.
|
spa.web.queryStringToObject()
Get query string as javascript object.
spa.web.updateQueryString(key, value, url)
Update query string value and return the new url.
Parameter | Type | Description |
---|---|---|
key |
string |
Query string name. |
value |
string|number |
The new value. |
url |
string |
The url. If not specified then the current url is used by default. |