Skip to content

A free open source IT asset/license management system

Updated named location routes in hardware

snipe406b828b4eae
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php
index ad6ceaafbd..0bd86cccaf 100755
--- a/resources/views/hardware/view.blade.php
+++ b/resources/views/hardware/view.blade.php
@@ -320,7 +320,7 @@
<td>{{ trans('general.location') }}</td>
<td>
@can('superuser')
- <a href="{{ route('view/location', $asset->assetloc->id) }}">
+ <a href="{{ route('locations.show', ['location' => $asset->assetloc->id]) }}">
{{ $asset->assetloc->name }}
</a>
@else
@@ -335,7 +335,7 @@
<td>{{ trans('admin/hardware/form.default_location') }}</td>
<td>
@can('superuser')
- <a href="{{ route('view/location', $asset->defaultLoc->id) }}">
+ <a href="{{ route('locations.show', ['location' => $asset->defaultLoc->id]) }}">
{{ $asset->defaultLoc->name }}
</a>
@else
diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php
index 9a11b11ad3..c8694340d9 100644
--- a/resources/views/locations/view.blade.php
+++ b/resources/views/locations/view.blade.php
@@ -9,7 +9,7 @@
@stop
@section('header_right')
-<a href="{{ route('update/location', $location->id) }}" class="btn btn-sm btn-primary pull-right">{{ trans('admin/locations/table.update') }} </a>
+<a href="{{ route('locations.edit', ['location' => $location->id]) }}" class="btn btn-sm btn-primary pull-right">{{ trans('admin/locations/table.update') }} </a>
@stop
{{-- Page content --}}