changed path to relative on getNextURL and getPreviousURL