]> BookStack Code Mirror - bookstack/blobdiff - app/Entity.php
Updated 'Spanish Argentina' translation.
[bookstack] / app / Entity.php
index 1ea4e8dac57cc56e8b978b11ca94f7850d914142..5d4449f2bd7817e38db5eb0284baa781c7e0858e 100644 (file)
@@ -5,8 +5,16 @@ use Illuminate\Database\Eloquent\Relations\MorphMany;
 class Entity extends Ownable
 {
 
+    /**
+     * @var string - Name of property where the main text content is found
+     */
     public $textField = 'description';
 
+    /**
+     * @var float - Multiplier for search indexing.
+     */
+    public $searchFactor = 1.0;
+
     /**
      * Compares this entity to another given entity.
      * Matches by comparing class and id.
@@ -189,8 +197,8 @@ class Entity extends Ownable
      * @param $path
      * @return string
      */
-    public function getUrl($path)
+    public function getUrl($path = '/')
     {
-        return '/';
+        return $path;
     }
 }