Skip to content

Commit

Permalink
Zenhub #982 Shared Goals > Back to List button navigates to Current g…
Browse files Browse the repository at this point in the history
…oals page after adding a comment
  • Loading branch information
jizhaogit committed Jul 6, 2023
1 parent a04a9e0 commit 949f8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/goal/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<x-button icon="edit" :href="route('goal.edit', $goal->id)">Edit</x-button>
@endif
</h2>
@if(session(from-share))
@if(session('from_share'))
<small><a href="{{ route('goal.share') }}">Back to list</a></small>
@else
<small><a href="{{ url()->previous() === url()->current() ? route('goal.index') : url()->previous() }}">Back to list</a></small>
Expand Down

0 comments on commit 949f8cd

Please sign in to comment.