Surface destination edits as the core dynamic short-link feature.
Deploy Ladill Link / deploy (push) Successful in 1m40s
Deploy Ladill Link / deploy (push) Successful in 1m40s
Move destination editing to the top of the link page, clarify that the short URL never changes, prevent caches from pinning old redirects, and test that later destination updates take effect immediately.
This commit is contained in:
@@ -116,7 +116,11 @@ class LinkController extends Controller
|
||||
return back()->withInput()->withErrors(['destination_url' => $e->getMessage()]);
|
||||
}
|
||||
|
||||
return back()->with('success', 'Link updated.');
|
||||
$message = isset($validated['destination_url'])
|
||||
? 'Destination updated. Your short link is unchanged — new clicks go to the new URL.'
|
||||
: 'Link updated.';
|
||||
|
||||
return back()->with('success', $message);
|
||||
}
|
||||
|
||||
public function destroy(ShortLink $link): RedirectResponse
|
||||
|
||||
Reference in New Issue
Block a user