Bug Fix: Don't consider redirects when generating context path elements.