I have this code in a sidebar template:
<ul id="profile-menu">
<% if isPhotoAlbum %>
<li><a href="$Album.AddPhotosLink">Add Photos to this Album</a></li>
<li><a href="$Album.DeleteLink">Delete this Album</a></li>
<li class="empty"> </li>
<% end_if %>
<% if isUploadPage %>
<li><a href="$Album.DeleteLink">Delete this Album</a></li>
<li><a href="$Album.Link">Back to Album</a></li>
<% end_if %>
<li><a href="$NewAlbumLink">Create a new Album</a></li>
<% if isPhotoAlbum %>
<li><a href="$Link">Return to Photo Gallery</a></a></li>
<% end_if %>
</ul><!-- profile-menu -->
The variable, $Album.DeleteLink, works just fine in the first instance it's used. In the second, in the "if isUploadPage" area, it doesn't. There is no fundamental change that occurs between the two instances that would cause it to break. The first instance prints the link just fine while the second one prints a blank.