summaryrefslogtreecommitdiff
path: root/freebase/fcl/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'freebase/fcl/commands.py')
-rwxr-xr-xfreebase/fcl/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/freebase/fcl/commands.py b/freebase/fcl/commands.py
index 1813fc0..0f1389b 100755
--- a/freebase/fcl/commands.py
+++ b/freebase/fcl/commands.py
@@ -764,7 +764,8 @@ def cmd_open(fb, id):
%prog open /some/id
"""
- os.system("open 'http://www.freebase.com/view%s'" % id)
+ path = fb.absid(id)
+ os.system("open 'http://%s/view%s'" % (fb.service_host, path))
def cmd_log(fb, id):