@rnett thanks for the help, it worked! Any time the user types the url with a path it goes to the 404.html(which is the same as the index.html) and triggers the main function where I am able to retrieve the pathName through a JS function and give the argument to Decompose for further handling.
@Pablichjenkov fortunately or unfortunately now the website loads well on every browser/device I try. Will track and see whether the load problem returns and will try to watch the logs...