I have encountered this problem from time to time, so finally I want to solve it once and for all.
The problem is that I want to fetch every part of the APEX URL. So that I can use it in JS for use in App Development, Plugins, User scripts, etc.
Exam...