FIX: Invalid escaping of URL

This commit is contained in:
Robin Ward 2016-06-09 15:10:21 -04:00
parent 4730c82b3a
commit ba5993ae79
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
// On facebook browser, just redirect and don't close
var ua = navigator.userAgent || navigator.vendor || window.opera;
if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
window.location.href = <%= Discourse.base_url.inspect %>;
window.location.href = '<%= Discourse.base_url.html_safe %>';
} else {
window.close();
}