codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

Running index.html runs the index.html from another directory

Open GameWinner6025 opened this issue 3 years ago • 6 comments

When I press run on an index.html, it shows the page from the directory I was previously in. It also uses the CSS, JS, and more from the previous directory. Closing the app does not help fix this. I have not yet found a way to fix this.

GameWinner6025 avatar Jun 23 '22 19:06 GameWinner6025

Same thing for me

hg0428 avatar Jun 23 '22 19:06 hg0428

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

luni-moon avatar Jun 23 '22 19:06 luni-moon

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

It does, I'm talking about a different project in a completely different.

And yes, I checked the code, everything else with the ide is working.

hg0428 avatar Jun 23 '22 20:06 hg0428

Isn't a project supposed to have only one index.html? Pardon if I misunderstood.

It does, I'm talking about a different project in a completely different.

And yes, I checked the code, everything else with the ide is working.

Okay, my bad. Thanks for the clarification.

luni-moon avatar Jun 23 '22 20:06 luni-moon

Set the working directory to the folder you are working on. The web server's root will be changed accordingly. You can do this by holding the folder cell and press "Assign as workplace folder" button.

bummoblizard avatar Jun 24 '22 14:06 bummoblizard

Set the working directory to the folder you are working on. The web server's root will be changed accordingly. You can do this by holding the folder cell and press "Assign as workplace folder" button.

I did that, otherwise I wouldn't have made this bug report

hg0428 avatar Jun 24 '22 14:06 hg0428