mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-17 05:08:21 +01:00
Redirect back to link list after deleting single link (#852)
This commit is contained in:
parent
e1a337558b
commit
9580da8f65
@ -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_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.',
|
||||
'deleted_successfully' => 'Link deleted successfully.',
|
||||
'deleted_successfully' => 'Link successfully moved to the trash.',
|
||||
'deletion_error' => 'Link could not be deleted.',
|
||||
|
||||
'duplicates_found' => 'LinkAce found possible duplicates of the submitted URL:',
|
||||
|
@ -66,7 +66,7 @@
|
||||
action="{{ route('links.destroy', [$link->id]) }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<input type="hidden" name="link_id" value="{{ $link->id }}">
|
||||
<input type="hidden" name="redirect_back" value="true">
|
||||
</form>
|
||||
</div>
|
||||
@if($shareLinks !== '')
|
||||
|
@ -66,11 +66,10 @@
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form id="link-delete-{{ $link->id }}" method="POST" style="display: none;"
|
||||
action="{{ route('links.destroy', [$link->id]) }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<input type="hidden" name="link_id" value="{{ $link->id }}">
|
||||
<input type="hidden" name="redirect_back" value="true">
|
||||
</form>
|
||||
</div>
|
||||
|
@ -35,8 +35,7 @@
|
||||
action="{{ route('lists.destroy', ['list' => $list]) }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<input type="hidden" name="redirect_back" value="1">
|
||||
<input type="hidden" name="list_id" value="{{ $list->id }}">
|
||||
<input type="hidden" name="redirect_back" value="true">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -24,11 +24,10 @@
|
||||
</div>
|
||||
|
||||
<form id="tag-delete-{{ $tag->id }}" method="POST" style="display: none;"
|
||||
action="{{ route('tags.destroy', [$tag]) }}">
|
||||
action="{{ route('tags.destroy', ['tag' => $tag]) }}">
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<input type="hidden" name="redirect_back" value="1">
|
||||
<input type="hidden" name="tag_id" value="{{ $tag->id }}">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user