Add lang in GET params on share/update

parent 3e1fce1b
Pipeline #1494 passed with stage
in 42 seconds
...@@ -87,7 +87,8 @@ function buildUrl(req) { ...@@ -87,7 +87,8 @@ function buildUrl(req) {
+ req.headers.host + '/' + req.headers.host + '/'
+ (config.subdir || '') + (config.subdir || '')
+ '?' + '?'
+ querystring.stringify(req.args); + querystring.stringify(req.args)
+ '&lang=' + req.i18n.getLocale();
} }
function tweetMessage(req) { function tweetMessage(req) {
......
...@@ -122,6 +122,7 @@ let draw = function() { ...@@ -122,6 +122,7 @@ let draw = function() {
+ '&text=' + encodeURIComponent(fillText) + '&text=' + encodeURIComponent(fillText)
+ '&font=' + encodeURIComponent(font) + '&font=' + encodeURIComponent(font)
+ '&icon=' + encodeURIComponent(icon) + '&icon=' + encodeURIComponent(icon)
+ '&lang=' + encodeURIComponent(language)
+ '&signature=' + encodeURIComponent(document.getElementById('signature').value) + '&signature=' + encodeURIComponent(document.getElementById('signature').value)
+ window.location.hash); + window.location.hash);
}, false); }, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment