Forum Discussion

__John_L_'s avatar
__John_L_
Copper Contributor
May 06, 2026
Solved

MS Edge use of file:// protocol in script and link tags

I'm trying to view an html file that exists on my hard drive. I have <SCRIPT> and<LINK> tags with relative addresses to files (stylesheets and scripts) in the folder (and subfolders) that contains the html file.

OOTB Edge errors in the console attempting a GET for these files. Is there a way, perhaps via Internet Options, to override this behavior and access the additional files from my hard drive?

I'm not interested in a webpage self-hosting solution.

Thanks in advance for any insight you can provide.

  • Quite simply, the specific choice of relative link format solves the problem:

     

    <link type="text/css" rel="stylesheet" href="./css/sh_dull.min.css">

    works,

    <link type="text/css" rel="stylesheet" href="css/sh_dull.min.css">

    does not. The analogous case for script relative links behaves similarly.

1 Reply

  • __John_L_'s avatar
    __John_L_
    Copper Contributor

    Quite simply, the specific choice of relative link format solves the problem:

     

    <link type="text/css" rel="stylesheet" href="./css/sh_dull.min.css">

    works,

    <link type="text/css" rel="stylesheet" href="css/sh_dull.min.css">

    does not. The analogous case for script relative links behaves similarly.