fix node ID determination for cases where URL aliases are enabled