Use helper function to append subtree query param
Created by: attfarhan
Use a helper function to append subtree=true
query param. Makes sure the param gets appended properly if there are other query params in the URL, in anticipation of version contexts.