FIX 'Add new' page button missing ParentID

Slight typo causing this. Also slightly amended how extra URL
parameters are tagged on to prevent &undefined being appended to URL
Merge pull request #740 from kinglozzer/3.1

FIX 'Add new' page button missing ParentID