Fix: blogging moduule comment and login redirect problems

resolves https://github.com/abpframework/abp/issues/4063
pull/4115/head
Yunus Emre Kalkan 5 years ago
parent 79c591f977
commit 4dfe7dd5ef

@ -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 @@
}
else
{
<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>
</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;

Loading…
Cancel
Save