diff --git a/examples/html/entityProperties.html b/examples/html/entityProperties.html
index 898f2bea6d..47790f8e0b 100644
--- a/examples/html/entityProperties.html
+++ b/examples/html/entityProperties.html
@@ -982,7 +982,7 @@
-
Href
+
Href - Hifi://address
diff --git a/libraries/entities/src/EntityItem.cpp b/libraries/entities/src/EntityItem.cpp
index 24314e807d..c67dc7212f 100644
--- a/libraries/entities/src/EntityItem.cpp
+++ b/libraries/entities/src/EntityItem.cpp
@@ -812,6 +812,14 @@ void EntityItem::setMass(float mass) {
}
}
+void EntityItem::setHref(QString value) {
+ auto href = value.toLower();
+ if (! (value.toLower().startsWith("hifi://")) ) {
+ return;
+ }
+ _href = value;
+}
+
void EntityItem::simulate(const quint64& now) {
if (_lastSimulated == 0) {
_lastSimulated = now;
diff --git a/libraries/entities/src/EntityItem.h b/libraries/entities/src/EntityItem.h
index 67af53615d..c8bf62f83e 100644
--- a/libraries/entities/src/EntityItem.h
+++ b/libraries/entities/src/EntityItem.h
@@ -172,7 +172,7 @@ public:
// Hyperlink related getters and setters
QString getHref() const { return _href; }
- void setHref(QString value) { _href = value; }
+ void setHref(QString value);
QString getDescription() const { return _description; }
void setDescription(QString value) { _description = value; }