Skip to content

Commit 20d782d

Browse files
committed
do not add sid= in the url if already contained in the url (make it gentle with futur api.istex.fr features: sid will be probably forwarded in the result JSON)
1 parent 876ceb9 commit 20d782d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ app.filter('languagize', function(){
178178
// this parameter is used for usage statistics
179179
app.filter('sidize', function() {
180180
return function(input, scope) {
181+
if (input.indexOf('sid=') !== -1) return input;
181182
if (input.indexOf('?') !== -1) {
182183
input += '&sid=istex-widgets';
183184
} else {

0 commit comments

Comments
 (0)