diff --git a/app/Models/Element/Element.php b/app/Models/Element/Element.php
index 055838a184..fcdd3769e8 100644
--- a/app/Models/Element/Element.php
+++ b/app/Models/Element/Element.php
@@ -191,6 +191,15 @@ public function getIdUrlAttribute() {
return url('world/elements/'.$this->id);
}
+ /**
+ * Search the masterlist for this element.
+ *
+ * @return string
+ */
+ public function getSearchUrlAttribute() {
+ return url('masterlist?element_ids[]='.$this->id);
+ }
+
/**
* Gets the admin edit URL.
*
diff --git a/resources/views/admin/elements/create_edit_element.blade.php b/resources/views/admin/elements/create_edit_element.blade.php
index 3ae3ebe85d..25b185c9ae 100644
--- a/resources/views/admin/elements/create_edit_element.blade.php
+++ b/resources/views/admin/elements/create_edit_element.blade.php
@@ -100,7 +100,13 @@
- @include('world._element_entry', ['imageUrl' => $element->imageUrl, 'name' => $element->displayName, 'description' => $element->parsed_description, 'searchUrl' => $element->searchUrl])
+ @include('world._element_entry', [
+ 'imageUrl' => $element->imageUrl,
+ 'name' => $element->displayName,
+ 'description' => $element->parsed_description,
+ 'idUrl' => $element->idUrl,
+ 'searchUrl' => $element->searchUrl,
+ ])
@endif
diff --git a/resources/views/world/_element_entry.blade.php b/resources/views/world/_element_entry.blade.php
index cc12440bb3..ae90f1826d 100644
--- a/resources/views/world/_element_entry.blade.php
+++ b/resources/views/world/_element_entry.blade.php
@@ -11,6 +11,11 @@
{!! $description !!}
diff --git a/resources/views/world/elements.blade.php b/resources/views/world/elements.blade.php
index 0e15b0e346..24460dc750 100644
--- a/resources/views/world/elements.blade.php
+++ b/resources/views/world/elements.blade.php
@@ -40,7 +40,13 @@
@foreach ($elements as $element)
- @include('world._element_entry', ['imageUrl' => $element->imageUrl, 'name' => $element->displayName, 'description' => $element->parsed_description, 'idUrl' => $element->idUrl])
+ @include('world._element_entry', [
+ 'imageUrl' => $element->imageUrl,
+ 'name' => $element->displayName,
+ 'description' => $element->parsed_description,
+ 'idUrl' => $element->idUrl,
+ 'searchUrl' => $element->searchUrl,
+ ])
@endforeach