diff --git a/web/app/assets/javascripts/scheduled_session.js.erb b/web/app/assets/javascripts/scheduled_session.js.erb index d455ca8f3..bf5bbc589 100644 --- a/web/app/assets/javascripts/scheduled_session.js.erb +++ b/web/app/assets/javascripts/scheduled_session.js.erb @@ -1553,16 +1553,14 @@ function createSessionByCustomUrlScheme(){ //an example URL would be: https://www.jamkazam.com/client#/createSession/custom~yes|privacy~2|description~hello|inviteeIds~1,2,3,4 - if(context.location.hash === '' || context.location.hash.match(/custom~yes/) === null){ - return; - } + var hash = decodeURIComponent(context.location.hash); - var hash = decodeURIComponent(context.location.hash); - if(hash.indexOf('custom~yes') === -1){ + if(hash === '' || hash.match(/custom~yes/) === null){ return; } var qStr = hash.substring(hash.lastIndexOf('/') + 1); + //decode the query params according to the custom format var qParamsArr = qStr.split('|'); var isCustom, privacy, description, inviteeIds;