Update ShareDialog.js

Update for #130 to handle creating sharing url where edit might not be the first url parameter.