<% if page_for_links.redirects_to_external? %>
<%= page_for_links.name %>
<% else %>
<%= link_to(page_for_links.name, '', {
:data => {
'page-id' => page_for_links.id,
:url => @url_prefix + page_for_links.urlname
},
:title => _t('page_for_links.choose_page', :name => page_for_links.name),
:class => "sitemap_pagename_link"
}) %>
<% end %>
<% if !page_for_links.children.empty? %>