Topbar Links are not working

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
adamtang
Posts: 3
Joined: 30 Jun 2017, 17:18

12 Jul 2017, 15:26

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.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

13 Jul 2017, 11:39

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>

gmar
Posts: 2
Joined: 09 Feb 2017, 14:33

23 Sep 2017, 12:25

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

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

02 Oct 2017, 07:59

Hi @gmar,

We'll check and get back to you.

Regards,

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Nov 2017, 14:01

Please post it at Manhattan-PrimeNg forum for Angular related questions.

Post Reply

Return to “Manhattan - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests