浏览代码

Fixed shortened URLs in profile history not being the correct links

master
Teknikode 3 年前
父节点
当前提交
060c7fda80
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Teknik/Areas/User/Views/User/ViewProfile.cshtml

+ 1
- 1
Teknik/Areas/User/Views/User/ViewProfile.cshtml 查看文件

@@ -206,7 +206,7 @@
<div class="tab-pane" id="shortenedUrls" style="overflow-y: auto; max-height: 500px;">
@foreach (Teknik.Areas.Shortener.Models.ShortenedUrl url in Model.ShortenedUrls)
{
string shortUrl = Url.SubRouteUrl(string.Empty, "Shortener.View", new { url = url.ShortUrl });
string shortUrl = string.Format("{0}://{1}/{2}", Request.Url.Scheme, Model.Config.ShortenerConfig.ShortenerHost, url.ShortUrl);
if (Model.Config.DevEnvironment)
{
shortUrl = Url.SubRouteUrl("shortened", "Shortener.View", new { url = url.ShortUrl });

正在加载...
取消
保存