resolves https://github.com/abpframework/abp/issues/4063
@ -86,6 +86,8 @@ namespace Volo.Blogging.Comments
comment = await _commentRepository.InsertAsync(comment);
await CurrentUnitOfWork.SaveChangesAsync();
return ObjectMapper.Map<Comment, CommentWithDetailsDto>(comment);
}
@ -151,7 +151,7 @@
else
{
<a abp-button="Primary" class="btn-rounded float-right active" href="/Account/Login?returnUrl=@Request.GetEncodedPathAndQuery()">@L["LeaveComment"]</a>
<a abp-button="Primary" class="btn-rounded float-right active" href="/Account/Login?returnUrl=@System.Web.HttpUtility.UrlEncode(@Request.Path)">@L["LeaveComment"]</a>
</abp-column>
</abp-row>
@ -342,7 +342,7 @@
<a abp-button="Primary" class="btn-rounded float-right active mt-3" href="/Account/Login?returnUrl=@Request.GetEncodedPathAndQuery()">@L["LeaveComment"]</a>
<a abp-button="Primary" class="btn-rounded float-right active mt-3" href="/Account/Login?returnUrl=@System.Web.HttpUtility.UrlEncode(@Request.Path)">@L["LeaveComment"]</a>
</div>
@ -118,6 +118,9 @@
$titleLengthWarning.hide();
title = title.replace(' &', ' ');
title = title.replace('& ', ' ');
title = title.replace('&', '');
title = title.replace(' ', '-');
title = title.replace(new RegExp(' ', 'g'), '-');
reflectedChange = true;