Skip to content

Commit 0604946

Browse files
committed
Fixing release navigation issues from zip
1 parent d90e7e6 commit 0604946

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

MarkdigAgg/MarkdownWidget.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ public void LoadUri(string uri)
166166
UriNavigated?.Invoke(this, fullPath);
167167
});
168168
}
169+
else
170+
{
171+
UriNavigated?.Invoke(this, fullPath);
172+
}
169173
}
170174
catch
171175
{
@@ -210,7 +214,7 @@ public void SetContentUri(string contentUri)
210214
{
211215
if (!string.IsNullOrWhiteSpace(contentUri))
212216
{
213-
var directory = File.Exists(contentUri)
217+
var directory = File.Exists(contentUri) || Path.HasExtension(contentUri)
214218
? Path.GetDirectoryName(contentUri)
215219
: contentUri;
216220

0 commit comments

Comments
 (0)