If you don't mind changing where you are
It looks to me like the link has to return you to the same post you are currently on, plus adjust the indentation. That would require a flag to change the indentaion plus variables to describe the current post you are on.
This is my sig. There are many like it, but this one is mine.