diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb
index 5452cc4fe..c31ea23dc 100644
--- a/app/views/site/_id.html.erb
+++ b/app/views/site/_id.html.erb
@@ -13,7 +13,7 @@
<% end -%>
var hash;
- if (coord.object && coord.object.type !== 'relation') {
+ if (coord.object) {
hash = '#id=' + coord.object.type[0] + coord.object.id;
} else {
hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat