#128 fixed query permalink generation when window is in iframe
resolved other query permalink issues by avoiding adding arguments multiple times to the generated url