fix: The 'Copy Link' function will prioritize copying any available custom URL, mirroring the behavior found on the web version

This commit is contained in:
Damian Lesiuk 2025-09-09 21:42:32 +02:00
parent 27bc8eba7b
commit 7af9d6d7b7
7 changed files with 502 additions and 3 deletions

View file

@ -274,7 +274,8 @@ class SharedLinkEditPage extends HookConsumerWidget {
}
if (newLink != null && serverUrl != null) {
newShareLink.value = "${serverUrl}share/${newLink.key}";
final fullPath = getShareUrlPath(newLink);
newShareLink.value = "$serverUrl$fullPath";
copyLinkToClipboard();
} else if (newLink == null) {
ImmichToast.show(