1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-01-17 13:18:21 +01:00

Redirect back to link list after deleting single link (#852)

This commit is contained in:
Kovah 2024-10-17 09:55:10 +02:00
parent e1a337558b
commit 9580da8f65
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
5 changed files with 5 additions and 8 deletions

View File

@ -59,7 +59,7 @@ return [
'added_connection_error' => 'The Link was added but a connection error occurred when trying to access the URL. Details can be found in the logs.', 'added_connection_error' => 'The Link was added but a connection error occurred when trying to access the URL. Details can be found in the logs.',
'added_request_error' => 'The Link was added but an error occurred when trying to request the URL, for example an invalid certificate. Details can be found in the logs.', 'added_request_error' => 'The Link was added but an error occurred when trying to request the URL, for example an invalid certificate. Details can be found in the logs.',
'updated_successfully' => 'Link updated successfully.', 'updated_successfully' => 'Link updated successfully.',
'deleted_successfully' => 'Link deleted successfully.', 'deleted_successfully' => 'Link successfully moved to the trash.',
'deletion_error' => 'Link could not be deleted.', 'deletion_error' => 'Link could not be deleted.',
'duplicates_found' => 'LinkAce found possible duplicates of the submitted URL:', 'duplicates_found' => 'LinkAce found possible duplicates of the submitted URL:',

View File

@ -66,7 +66,7 @@
action="{{ route('links.destroy', [$link->id]) }}"> action="{{ route('links.destroy', [$link->id]) }}">
@method('DELETE') @method('DELETE')
@csrf @csrf
<input type="hidden" name="link_id" value="{{ $link->id }}"> <input type="hidden" name="redirect_back" value="true">
</form> </form>
</div> </div>
@if($shareLinks !== '') @if($shareLinks !== '')

View File

@ -66,11 +66,10 @@
</div> </div>
</div> </div>
@endif @endif
<form id="link-delete-{{ $link->id }}" method="POST" style="display: none;" <form id="link-delete-{{ $link->id }}" method="POST" style="display: none;"
action="{{ route('links.destroy', [$link->id]) }}"> action="{{ route('links.destroy', [$link->id]) }}">
@method('DELETE') @method('DELETE')
@csrf @csrf
<input type="hidden" name="link_id" value="{{ $link->id }}"> <input type="hidden" name="redirect_back" value="true">
</form> </form>
</div> </div>

View File

@ -35,8 +35,7 @@
action="{{ route('lists.destroy', ['list' => $list]) }}"> action="{{ route('lists.destroy', ['list' => $list]) }}">
@method('DELETE') @method('DELETE')
@csrf @csrf
<input type="hidden" name="redirect_back" value="1"> <input type="hidden" name="redirect_back" value="true">
<input type="hidden" name="list_id" value="{{ $list->id }}">
</form> </form>
</div> </div>
</div> </div>

View File

@ -24,11 +24,10 @@
</div> </div>
<form id="tag-delete-{{ $tag->id }}" method="POST" style="display: none;" <form id="tag-delete-{{ $tag->id }}" method="POST" style="display: none;"
action="{{ route('tags.destroy', [$tag]) }}"> action="{{ route('tags.destroy', ['tag' => $tag]) }}">
@method('DELETE') @method('DELETE')
@csrf @csrf
<input type="hidden" name="redirect_back" value="1"> <input type="hidden" name="redirect_back" value="1">
<input type="hidden" name="tag_id" value="{{ $tag->id }}">
</form> </form>
</td> </td>
</tr> </tr>