Skip to content

Commit f7965e0

Browse files
committed
Aligned urls
1 parent fded44b commit f7965e0

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
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("/blogPost/SomeId");
23+
readMore.Attributes.Single(a => a.Name == "href").Value.Should().Be("/SomeId");
2424
}
2525

2626
[Fact]

LinkDotNet.Blog.Web/Pages/Admin/CreateNewBlogPostPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@page "/CreateNew"
1+
@page "/create"
22
@attribute [Authorize]
33
@using LinkDotNet.Infrastructure.Persistence
44
@using LinkDotNet.Blog.Web.Shared.Admin

LinkDotNet.Blog.Web/Pages/BlogPostPage.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
@page "/BlogPost/{blogPostId}"
1+
@* This url is deprecated and will be removed in a future release *@
2+
@page "/blogPost/{blogPostId}"
3+
@page "/{blogPostId}"
24
@using LinkDotNet.Domain
35
@using LinkDotNet.Infrastructure.Persistence
46
@inject IRepository _repository

LinkDotNet.Blog.Web/Shared/AccessControl.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<AuthorizeView>
22
<Authorized>
3-
<a href="CreateNew">Admin</a>
3+
<a href="create">Create</a>
44
<a href="logout">Log out</a>
55
</Authorized>
66
<NotAuthorized>

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/@BlogPost.Id">Read More</a>
29+
<a href="/@BlogPost.Id">Read More</a>
3030
</p>
3131
</div>
3232
</div>

0 commit comments

Comments
 (0)