Use a more mojo-idiomatic condition than $c->req->url->path.
This commit is contained in:
parent
df1234e913
commit
4b08928ffc
|
@ -8,7 +8,8 @@
|
|||
<hr/>
|
||||
<div>
|
||||
<%# Provide a link to the home page, unless we're on it. %>
|
||||
<% if ('/' ne $c->req->url->path) { %>
|
||||
<%# The "current route" for the home is apparently an empty string. %>
|
||||
<% if ('' ne current_route) { %>
|
||||
<a href="<%= url_for('/') %>">Home</a>
|
||||
<% } %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user