diff --git a/src/core_plugins/state_session_storage_redirect/package.json b/src/core_plugins/state_session_storage_redirect/package.json index fd24ec9b0ddcc..7eedbddb08325 100644 --- a/src/core_plugins/state_session_storage_redirect/package.json +++ b/src/core_plugins/state_session_storage_redirect/package.json @@ -1,4 +1,5 @@ { "name": "state_session_storage_redirect", - "version": "kibana" + "version": "kibana", + "description": "When using the state:storeInSessionStorage setting with the short-urls, we need some way to get the full URL's hashed states into sessionStorage, this app will grab the URL from the kbn-initial-state and and put the URL hashed states into sessionStorage before redirecting the user." } diff --git a/src/ui/public/state_management/state_hashing/hash_url.js b/src/ui/public/state_management/state_hashing/hash_url.js index 1739a14ea9546..e34829f19bef3 100644 --- a/src/ui/public/state_management/state_hashing/hash_url.js +++ b/src/ui/public/state_management/state_hashing/hash_url.js @@ -34,7 +34,7 @@ const hashStatesInQuery = (states, query) => { return Object.assign({}, query, hashedQuery); }; -const hashUrl = (states, redirectUrl) => { +export const hashUrl = (states, redirectUrl) => { // we need states to proceed, throwing an error if we don't have any if (states === null || !states.length) { throw new Error('states parameter must be an Array with length greater than 0'); @@ -73,5 +73,3 @@ const hashUrl = (states, redirectUrl) => { protocol: parsedUrl.protocol, }); }; - -export default hashUrl; diff --git a/src/ui/public/state_management/state_hashing/index.js b/src/ui/public/state_management/state_hashing/index.js index 6f3f5b6484931..438dc4430b103 100644 --- a/src/ui/public/state_management/state_hashing/index.js +++ b/src/ui/public/state_management/state_hashing/index.js @@ -3,7 +3,7 @@ export { } from './get_unhashable_states_provider'; export { - default as hashUrl, + hashUrl, } from './hash_url'; export {