Use a more mojo-idiomatic condition than $c->req->url->path.

This commit is contained in:
barnold 2022-09-13 15:19:48 +01:00
parent df1234e913
commit 4b08928ffc

View File

@ -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>