Skip to content

A free open source IT asset/license management system

Use route name in case the user biffs the checkout twice

snipe8de7e9a2ab83
diff --git a/resources/views/consumables/checkout.blade.php b/resources/views/consumables/checkout.blade.php
index e724115c14..f768f78484 100644
--- a/resources/views/consumables/checkout.blade.php
+++ b/resources/views/consumables/checkout.blade.php
@@ -76,7 +76,7 @@
</div>
</div> <!-- .box-body -->
<div class="box-footer">
- <a class="btn btn-link" href="{{ URL::previous() }}">{{ trans('button.cancel') }}</a>
+ <a class="btn btn-link" href="{{ route('consumables.show', ['consumable'=> $consumable->id]) }}">{{ trans('button.cancel') }}</a>
<button type="submit" class="btn btn-primary pull-right"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.checkout') }}</button>
</div>
</div>