Local files can now be loaded by relative path, rather than the
whole path preceded by the file:// scheme indicator. It first
checks whether or not the requested URL has a scheme (by checking
for :// in the URL). If not, it checks to see if the file exists
before opening. It also allows making intention known by
specifying ./ or ../ before the URL, closely matching the
behavior of Firefox.
This borrows code from @singalhimanshu's PR (#232).
Local files can now be loaded by relative path, rather than the whole path preceded by the
file://
scheme indicator. It first checks whether or not the requested URL has a scheme (by checking for://
in the URL). If not, it checks to see if the file exists before opening. It also allows making intention known by specifying./
or../
before the URL, closely matching the behavior of Firefox.This borrows code from @singalhimanshu's PR (#232).
Resolves #231