fixes #86: ToS page not linked to some menu items
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
if (loc.match(/^\/(comment|pool|note|post)/) && this.get("tos") != "1") {
|
if (loc.match(/^\/(comment|pool|note|post)/) && this.get("tos") != "1") {
|
||||||
// Setting location.pathname in Safari doesn't work, so manually extract the domain.
|
// Setting location.pathname in Safari doesn't work, so manually extract the domain.
|
||||||
var domain = location.href.match(/^(https?:\/\/[^\/]+)/)[0];
|
var domain = location.href.match(/^(https?:\/\/[^\/]+)/)[0];
|
||||||
location.href = domain + "/static/terms_of_service?url=" + location.href;
|
location.href = domain + "/terms_of_service?url=" + encodeURIComponent(location.href);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user