Layout Logo breaks when exiting Index

Asked

Viewed 20 times

-1

Hello, my logo breaks after leaving the index, whatever the view(Edit,delet, etc.), it breaks, in the index is normal, I would like to know how to fix it, following the error and the code. I’m using Asp.net core MVC and Razor Pages for Views.

inserir a descrição da imagem aqui

         <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
                        <a class="navbar-brand" href="#"><img src=" images/imagem-logo-9A7444CA59-seeklogo.com_preview_rev_1.png" width=60 height=40 /></a>
                        <div class="navbar-nav">
                            <a class="nav-link" asp-area="" asp-controller="Items" asp-action="Index">Items <span class="sr-only"></span></a>
                            <a class="nav-link" asp-area="" asp-controller="Fichas" asp-action="">Fichas<span class="sr-only"></span></a>
                            <a class="nav-link " asp-area="" asp-controller="Locations" asp-action="">Usuários<span class="sr-only"></span></a>
                            <div class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" asp-controller="Loc">Histórico</a>
                                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                    <a asp-controller="Loc" asp-action="Item" class="dropdown-item">Items</a>
                                    <a asp-controller="Loc" asp-action="Index" class="dropdown-item">Computadores</a>
                                </div>

1 answer

0

Change the image path to always take it from the root

<img src="/images/imagem-logo-9A7444CA59-seeklogo.com_preview_rev_1.png" width=60 height=40 />

Or check the appropriate virtual path

Browser other questions tagged

You are not signed in. Login or sign up in order to post.