get_permalink() wasn't working right. switched to REQUEST_URI