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 d9ee0f5 commit 1457421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/goal/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
@endif
</h2>
@if(session(from-share))
<small><a href="{{ route('goal.share') }}">Back to list</a></small>
@elseif
<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>
@endif

Expand Down

0 comments on commit 1457421

Please sign in to comment.