导航链接适用于移动电话,但不适用于台式电脑

问题描述:

我有此网站http://sds-test.nowcommu.myhostpoint.ch/de(请使用“de”结尾),导航“RECHENZENTRUM”的最后一个链接不适用于桌面,但适用于移动设备。我如何解决它?这是树枝代码:导航链接适用于移动电话,但不适用于台式电脑

{% extends 'partials/base.html.twig' %} 

{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %} 
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} 

{% block javascripts %} 
{% if show_onpage_menu %} 
    {% do assets.add('theme://js/singlePageNav.min.js') %} 
{% endif %} 
{{ parent() }} 
{% endblock %} 


{% block bottom %} 
{{ parent() }} 
{% if show_onpage_menu %} 
    <script> 
    // singlePageNav initialization & configuration 
    $('#navbar').singlePageNav({ 
     offset: $('#header').outerHeight(), 
     filter: ':not(.external)', 
     updateHash: true, 
     currentClass: 'active' 
    }); 
    </script> 
{% endif %} 
{% endblock %} 

{% block header_navigation %} 
{% if show_onpage_menu %} 
    <ul class="navigation"> 
    {% for module in page.collection() %} 
     {% set current_module = (module.active or module.activeChild) ? 'active' : '' %} 
     <li class="{{ current_module }}"><a href="#{{ _self.pageLinkName(module.menu) }}">{{ module.menu }}</a></li> 
    {% endfor %} 
     {% set datacenter_page = page.find('/services/datacenter') %} 
<li><a href ="{{ datacenter_page.url() }}">{{ datacenter_page.menu() }}</a></li> 
    </ul> 
{% else %} 
    {{ parent() }} 
{% endif %} 
{% endblock %} 

{% block content %} 
{{ page.content }} 
{% for module in page.collection() %} 
    <div id="{{ _self.pageLinkName(module.menu) }}"></div> 
    {{ module.content }} 
{% endfor %} 
{% endblock %} 

的“rechenzentrum”链接正确地呈现,并通过复制右键单击链接位置让打开一个看似正确的页面正确的URL。所以模板渲染很好。

虽然链接有两个onclick处理程序附加到它。可能其中一个失败,从而阻止导航。 (JS被缩小了,所以我没有尝试调试它。)

+0

现在应该没有缩小。 – Eloyen

+0

现在它要求输入密码:) – 9000