Merge pull request #1408 from drakkein/master
Strip tracking URL params
This commit is contained in:
commit
006ee1d2e6
5 changed files with 116 additions and 17 deletions
|
@ -74,7 +74,9 @@ module.exports = function(state, emit) {
|
|||
const password = el.value;
|
||||
if (password.length > 0) {
|
||||
document.getElementById('password-btn').disabled = true;
|
||||
state.fileInfo.url = window.location.href;
|
||||
// Strip any url parameters between fileId and secretKey
|
||||
const fileInfoUrl = window.location.href.replace(/\?.+#/, '#');
|
||||
state.fileInfo.url = fileInfoUrl;
|
||||
state.fileInfo.password = password;
|
||||
emit('getMetadata');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue