Page 1 of 1

Topbar Links are not working

Posted: 12 Jul 2017, 15:26
by adamtang
Hi ALL,

Inside topbar.xhtml, I have make changes as below but the page redirection is not working.
<li role="menuitem">
<a href="login.xhtml">
<i class="fa fa-fw fa-sign-out"></i>
<span>Logout</span>
</a>
</li>
I have changed <a href="#"> to <a href="login.xhtml">
or
changed <a href="#"> to <a href="/login.xhtml">

but both of them are not working.

In addition, I wish to use login instead of "login.xhtml". Could anyone suggest a good way to achieve this?

Thanks alot.

Re: Topbar Links are not working

Posted: 13 Jul 2017, 11:39
by mert.sincan
Fixed for next version.

Please make the following changes in layout.js;

Code: Select all

/** 
 * PrimeFaces Manhattan Layout
 */
PrimeFaces.widget.Manhattan = PrimeFaces.widget.BaseWidget.extend({
    
    
    bindEvents: function() {
        ...
        
        this.topbarLinks.on('click', function(e) {
            
            /********************* PLEASE ADD THIS LINE (line 117) ***********************/
                  var href = link.attr('href');
                  if(href && href !== '#') {
                        window.location.href = href;
                  }
           /*********************************************************************/             
            e.preventDefault();   
        });
        
        ...
    },
Exp;
<li role="menuitem">
<a href="login.xhtml">
<i class="fa fa-fw fa-sign-out"></i>
<span>Logout</span>
</a>
</li>

Re: Topbar Links are not working

Posted: 23 Sep 2017, 12:25
by gmar
Hi Aragorn,

I would need to do the same thing in the Angular version.
Can you help me ?
When should the new version come out?

Thanks in advance

Re: Topbar Links are not working

Posted: 02 Oct 2017, 07:59
by mert.sincan
Hi @gmar,

We'll check and get back to you.

Regards,

Re: Topbar Links are not working

Posted: 30 Nov 2017, 14:01
by cagatay.civici
Please post it at Manhattan-PrimeNg forum for Angular related questions.