Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
6421ec72
Commit
6421ec72
authored
Jan 08, 2018
by
Ryan Herbert
Committed by
marc duez
Jun 03, 2020
Browse files
url.js don't write positionnal arguments
Nginx can take care of all that. They will not change until a new URL is called.
parent
8f6cb85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/url.js
View file @
6421ec72
...
...
@@ -220,11 +220,11 @@ PositionalUrl.prototype.generateParamsString = function(params_dict) {
}
}
}
return
positional_params
.
join
(
'
/
'
)
+
'
?
'
+
params_list
.
join
(
"
&
"
);
return
'
?
'
+
params_list
.
join
(
"
&
"
);
}
PositionalUrl
.
prototype
.
pushUrl
=
function
(
params
)
{
var
new_url
=
window
.
location
.
origin
+
'
/browser/
'
+
params
;
var
new_url
=
window
.
location
.
href
.
split
(
'
?
'
)[
0
]
+
params
;
console
.
log
(
"
new url:
"
+
new_url
);
this
.
window
.
history
.
pushState
(
'
plop
'
,
'
plop
'
,
new_url
);
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment