Update better redirection message.
This commit is contained in:
parent
81a9390441
commit
d8185b7be8
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ last_article = @items.select do |a|
|
|||
a.reps[0].path =~ /\/#{language}\// && a[:kind] == 'article'
|
||||
end.sort { |x,y| y[:created_at] <=> x[:created_at] }[0]
|
||||
targetUrl = last_article.path
|
||||
targetTitle = last_article[:title]
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
|
@ -15,6 +16,6 @@ targetUrl = last_article.path
|
|||
</head>
|
||||
<body>
|
||||
<p>You should be redirected to</p>
|
||||
<div><a href="<%= targetUrl %>"><%= targetUrl %></a></div>
|
||||
<div><a href="<%= targetUrl %>"><%= targetTitle %></a></div>
|
||||
</body>
|
||||
</HTML>
|
||||
|
|
Loading…
Reference in a new issue