JavaScript : Hardcoded absolute path

Classification

Overview

There is an absolute path to the file in the application code. This path is initially less flexible and does not allow an application to take into account changes in the environment. For example, the program may be installed in a different directory than the default.

References

  1. StackOverflow: Absolute vs relative path