Anchor tags not working on laravel 5.2


Azario Times

I wouldn't make direct pages with anchor tags in blade template engine, but it doesn't work.

_sidebar.blade.php

<li class="active treeview">
      <a href="{{ url('/') }}">
        <i class="fa fa-dashboard"></i> <span>Menu Utama</span>
      </a>
    </li>
    <li class="treeview">
      <a href="{{ url('data_jamaah') }}">
        <i class="fa fa-users"></i>
        <span>Data Jamaah</span>
      </a>

routes.php

Route::get('/', 'PagesController@getIndex');
Route::get('data_jamaah', 'PagesController@getJamaah');

PagesController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Inbox;

class PagesController extends Controller
 {
   public function getIndex() {
      return view('pages.index');
     }

    public function getJamaah() {
        return view('pages.data_jamaah');
   }

 }

The problem is when i click nothing happens thank you for your help

edit:

this is main.blade.php

<!DOCTYPE html>
<html lang="en">
<head>
   @include('partials._head')
   @yield('stylesheets')
</head>

  <body class="hold-transition skin-blue sidebar-mini">
   <div class="wrapper">
      @include('partials._nav')
      @include('partials._sidebar')
      @yield('content')
    <footer class="main-footer">
        @include('partials._footer')
    </footer> 
</div>
@include('partials._javascript')
@yield('javascripts')
</body>
</html>
Benjamin Brasseur

Your question comes from how to use the adminLTE sidebar.

When specifying the treeview in the class , there will be a dropdown. and the anchor will be deactivated.

So try something like this:

<li class="active">
   <a href="{{ url('/') }}">
       <i class="fa fa-dashboard"></i> <span>Menu Utama</span>
   </a>
</li>
<li>
   <a href="{{ url('data_jamaah') }}">
       <i class="fa fa-users"></i>
       <span>Data Jamaah</span>
   </a>
</li>

Related


Anchor tags not working on laravel 5.2

Azario Times I wouldn't make direct pages with anchor tags in blade template engine, but it doesn't work. _sidebar.blade.php <li class="active treeview"> <a href="{{ url('/') }}"> <i class="fa fa-dashboard"></i> <span>Menu Utama</span> </a>

Anchor tags not working on laravel 5.2

Azario Times I wouldn't make direct pages with anchor tags in blade template engine, but it doesn't work. _sidebar.blade.php <li class="active treeview"> <a href="{{ url('/') }}"> <i class="fa fa-dashboard"></i> <span>Menu Utama</span> </a>

Anchor tags not working on laravel 5.2

Azario Times I wouldn't make direct pages with anchor tags in blade template engine, but it doesn't work. _sidebar.blade.php <li class="active treeview"> <a href="{{ url('/') }}"> <i class="fa fa-dashboard"></i> <span>Menu Utama</span> </a>

Anchor tags are not working properly in my Laravel website

Arafat Rahman On my Laravel website, I want to link my Facebook account with the website, but it's not working. if i am using <a href="{{url('/www.facebook.com/my_fb_page_id')}}"></a> For this, the link appears as follows https://myDomainName/www.facebook.com

Anchor tags are not working properly in my Laravel website

Arafat Rahman On my Laravel website, I want to link my Facebook account with the website, but it's not working. if i am using <a href="{{url('/www.facebook.com/my_fb_page_id')}}"></a> For this, the link appears as follows https://myDomainName/www.facebook.com

Anchor tags not working in fancybox

username When I click "LOGOUT" I want to logout (redirect to logout page). <div id="emailverification" style="display:none;"> <div style="width: 100%;float:left;background-color: #E4E5EA;"> $(document).ready(function () { $("#emailverification").fancybox(

Animation not working on all anchor tags

Barwick I'm having a problem with the arrow animation on hover of an anchor tag. When I hover over the first Anchor label animation it works fine and changes the style using JavaScript. But the problem is when I use multiple Anchor tags, it only works perfectl

My anchor tags are not working.

Froy The problem is that as stated in the title, clicking on an image wrapped with an anchor tag doesn't work. Here is an example of a grid list item: <li class="grid-list-item"> <h3 class="grid-trail-name">Marshall Canyon</h3><span class="grid-loc

Text indent not working with anchor tags

Corinem http://jsfiddle.net/corinem/TtPgy/ I am using: <a href="">Lorem ipsum dolor.</a> CSS: a{text-indent:-9999px;} ...but that doesn't work. For example <p>, it works when I do it with another tab . I also tried adding overflow:hiddenCSS but it still does

Animation not working on all anchor tags

Barwick I'm having a problem with the arrow animation on hover of an anchor tag. When I hover over the first Anchor label animation it works fine and changes the style using JavaScript. But the problem is when I use multiple Anchor tags, it only works perfectl

CSS styles for anchor tags not working

Turbo 123 I put some links on the page, added the link to a css file to the html, but the styles are not showing. HTML: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="te

Animation not working on all anchor tags

Barwick I'm having a problem with the arrow animation on hover of an anchor tag. When I hover over the first Anchor label animation it works fine and changes the style using JavaScript. But the problem is when I use multiple Anchor tags, it only works perfectl

Animation not working on all anchor tags

Barwick I'm having a problem with the arrow animation on hover of an anchor tag. When I hover over the first Anchor label animation it works fine and changes the style using JavaScript. But the problem is when I use multiple Anchor tags, it only works perfectl

Animation not working on all anchor tags

Barwick I'm having a problem with the arrow animation on hover of an anchor tag. When I hover over the first Anchor label animation it works fine and changes the style using JavaScript. But the problem is when I use multiple Anchor tags, it only works perfectl

Anchor tags in chrome not working properly? Is this a chrome bug?

Owen I have a website http://rethinkwaste.com.au/ . When the first slide is clicked, I set an anchor <div id="illegal"></div> This seems to jump back to the top of the page on first load in google chrome. Is this a Chrome bug? If I then refresh or load the pa

Subsequent anchor tags not working in html/php

Bishwaroop Chakraborty I'm trying to alert each user's personal id in a html user link. So each user will be fetched from the database and displayed on the page as a link. Also, since they have a unique email id, I'm trying to alert that user to their email wh

Some tags in anchor tag, text indent not working

Rajaseca I created the label inside the label and applied the indent text: -9999px; but it doesn't work To be ADA compliant we need to add (new window) text in the anchor tag, but I don't want that text to be displayed so I used text-indent HTML: <a href="#" t

Some tags in anchor tag, text indent not working

Rajaseca I created the label inside the label and applied the indent text: -9999px; but it doesn't work To be ADA compliant we need to add (new window) text in the anchor tag, but I don't want that text to be displayed so I used text-indent HTML: <a href="#" t

Javascript dynamic creation of anchor tags g not working

Ankita Kashyap I am trying to create html using javascript. But my links to anchor tags are not working. var test ="http://blogs.edweek.org/edweek/finding_common_ground/2016/10/if_coaching_is_so_powerful_why_are't_principals_being_coached.html?cmp=SOC-EDIT-F

How to place routes in anchor tags in Laravel 5.2

Nitish Kumar I read many of the following articles that explain how to generate links from named routes, but couldn't solve my problem. Tutorial 1 Tutorial 2 Tutorial 3 Here are the routes defined: Route::get('/nitsadmin/dashboard', function () { return vi

How to do routing in laravel with anchor tags?

I agree Below is my code in web.php $api->get('admin/views/query/new_query', 'AdminViewsController@answer_to_query'); In my controller: public function answer_to_query() { return view('admin.query.new_query'); } in my opinion: <div class="btn-group">

Anchor tags for search results in Laravel 4

Joe Williams I have created a query that queries multiple tables in a database. I'm trying to change the href for each result, but obviously they have different routes/controllers. I added a custom attribute to the query: $enterprise = DB::table('enterprise')

How to place routes in anchor tags in Laravel 5.2

Nitish Kumar I read many of the following articles that explain how to generate links from named routes, but couldn't solve my problem. Tutorial 1 Tutorial 2 Tutorial 3 Here are the routes defined: Route::get('/nitsadmin/dashboard', function () { return vi

How to do routing in laravel with anchor tags?

I agree Below is my code in web.php $api->get('admin/views/query/new_query', 'AdminViewsController@answer_to_query'); In my controller: public function answer_to_query() { return view('admin.query.new_query'); } in my opinion: <div class="btn-group">

How to do routing in laravel with anchor tags?

I agree Below is my code in web.php $api->get('admin/views/query/new_query', 'AdminViewsController@answer_to_query'); In my controller: public function answer_to_query() { return view('admin.query.new_query'); } in my opinion: <div class="btn-group">

How to place routes in anchor tags in Laravel 5.2

Nitish Kumar I read many of the following articles that explain how to generate links from named routes, but couldn't solve my problem. Tutorial 1 Tutorial 2 Tutorial 3 Here are the routes defined: Route::get('/nitsadmin/dashboard', function () { return vi

How to place routes in anchor tags in Laravel 5.2

Nitish Kumar I read many of the following articles that explain how to generate links from named routes, but couldn't solve my problem. Tutorial 1 Tutorial 2 Tutorial 3 Here are the routes defined: Route::get('/nitsadmin/dashboard', function () { return vi