How is the "act" part of the URL appended here? Should this not include  "+ getPath();" similar to line 89?