Skip to content

Commit ace8576

Browse files
committed
Fixed preview images triggering blogPost url
1 parent 41621cb commit ace8576

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

LinkDotNet.Blog.UnitTests/Web/Shared/ShortBlogPostTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void ShouldOpenBlogPost()
2020

2121
var readMore = cut.Find(".read-more a");
2222

23-
readMore.Attributes.Single(a => a.Name == "href").Value.Should().Be("/SomeId");
23+
readMore.Attributes.Single(a => a.Name == "href").Value.Should().Be("/blogPost/SomeId");
2424
}
2525

2626
[Fact]

LinkDotNet.Blog.Web/Pages/BlogPostPage.razor

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@* This url is deprecated and will be removed in a future release *@
21
@page "/blogPost/{blogPostId}"
3-
@page "/{blogPostId}"
42
@using LinkDotNet.Domain
53
@using LinkDotNet.Infrastructure.Persistence
64
@using Markdig

LinkDotNet.Blog.Web/Shared/ShortBlogPost.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<h2></h2>
2727
<p>@RenderMarkupString(BlogPost.ShortDescription)</p>
2828
<p class="read-more">
29-
<a href="/@BlogPost.Id">Read More</a>
29+
<a href="/blogPost/@BlogPost.Id">Read More</a>
3030
</p>
3131
</div>
3232
</div>

0 commit comments

Comments
 (0)