ES6 Import statement url path in server

Hi guys!

I was wondering what the relative path means when it comes to an html file served over the internet.

Essentially if I have a relative import in a js module; does this look at the path relative to the link or to the filesystem?

for example a file that does:

import { add } from './math_functions.js';

in a js file that is hosted on

On the server it is relative to the current module: 'math_functions.js' is in the same directory as file that executes this import, so the path would be: