In the IDE, Nav links stopped working

Hi,

For some reason (and all of a sudden !) my menu links no longer work (in the Wappler IDE)

e.g. ==>

<a class="nav-item nav-link active text-info font-weight-light" href="aboutscode.html">About Sourcecode</a>

I now get a javascript error saying:

Not allowed to load local resource { the file path }

The file’s properties have no security restrictions; so its something that Wappler thinks is restricting it.

All ideas are most welcome.

tony

EDIT: I just realized that this corresponds coincidentally with my upgrading to 1.8.1

Is there a chance that you upload an example document and giving us the link. That way we can see what is going on first hand.

I have attached the entire web-site for review…

From what I can gather, this sort of error happens in MANY javascript environments that try to load a local file using ===>

file:///somePath/someFolder/someFile

In my case, as you will see, I have used the LINK property of the NAV LINK object which allows you to navigate to the html file (which are all in the same folder)

But when I run the project in PREVIEW mode, and click one of the Nav links (on any page) the Javascript error icon shows an error which indicates that it is NOT ALLOWED to load the target html file AND the error shows the entire filepath including the leading file:// (as opposed to showing it as a relative file. The class for the link shows the target as a relative file (i.e. same folder so its simply the file name.)

And BTW, I tried loading one of the DEMO projects and added an actual target to one of their Nav Links with the same result.

newScode.zip (3.4 MB)

The good news: Your site looks good, feels great, all without a single error!

The bad news: I think that you may not have set the site up properly. To run the project that I downloaded as a ZIP file,

  1. openened the ZIP file
  2. copied the newScode directory and pasted it onto my harddrive
  3. started Wappler
  4. created a new project in Wappler by using the ‘Open Existing Folder’ option

After that I had no problems. For more info, please go to the Project Manager at this link https://community.wappler.io/c/docs

Well, that is good news.

The bad news is that I reproduced your actions and got the same results :pensive:

So I’ll be forwarding you changes and additions through the years that you can incorporate and test for me :sunglasses:

It must be something local to my environment. Another weird thing is that If I launch my home page (index.html as a FILE://) in Chrome, EVERYTHING works as expected; so its something about the PREVIEW MODE in the Wappler IDE that’s getting stuck.

Is there any way for me to get under the covers like you can with Chrome INSPECT so that I can see exactly where this javascript error is occurring in WapplerLand? If the GUI is going to tell me about Javascript errors, then it should let me see more that the error message.

thanks !

tony