My website crashes when I click a certain link twice

Eli Rosmarin

I am trying to develop a navigation bar for a website with a dropdown menu. I am running it locally and have the "links" stored in a folder called categories This line of HTML is giving me issues

<li><a href="./categories/about.shtml">About</a></li>

The first time when I go to the about page it works fine, but I run into a bug in that if I click the "About" dropdown again there is an error because it is searching for "categories/categories/about.shtml.

Is there any way for me to use href so that it will essentially search a file tree from a given "root" to prevent this from happening.

xploited

You're using a relative path, when on the home page you do click the link the path of the link is not the same.

At home page is:

<li><a href="./categories/about.shtml">About</a></li>

But when you click it, and you navigate to it, it should become to:

<li><a href="./about.shtml">About</a></li>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

when I click on link on my website it is not opening? why is it so?

my entire website shakes when i click on a link and a border is displayed

My function's click only triggers when I click the link/button twice

I am not able to figure out a bug that is when I try to click on a link on my website it appears the 404

In Shiny/R when I click on image link (actionLink) the app crashes

When I click on the button, my prompt appears twice

How to make my iphone vibrate twice when I click on a button?

App crashes when I click the search button in my other fragments

I want to add image when I share my website link

How to get my website to scroll to the top when I click on an image

my news feed don't display until i click the link twice

How can I make everything else hidden when I am at a certain part of a website (id link)?

My Whole App Crashes When I Click My Play Again Button

why i should click twice when i want to play againt my stopwatch after reset it?

My html website overflowing the right way when i click my login screen and back to my main page

I am trying to inflate a menu from my HomeActivity but the app crashes when i click any of the items on the list

Android http URL scheme is not working when I try to launch my application from a link on my website

Why aren't my checkboxes rendering when I click twice in the same item?

The program stops when I click on the button twice

when I click on the button the app crashes

webview crashes when i click links

How to open App when click a website link (Firebase Dynamic Link)

How I can reload all the opened pages of my website when I click a button

I can't click a hyperlink on my website

Im calling my dialog when I click in my link but dialog is not appearing

I have to click twice a link button to change page

When I click on my link to access an uploaded PDF, I am not getting the correct one

How do i make my side navigation modul close when i click a link

How can I add a video to my website that plays when you click a button?