I've got a variable like {current_url} which contains the full url of the page you are on.
I want to strip out the last segment from it.
Is there a plugin or native EE way of doing that?
Say that variable is example.com/me/you and i want to remove the "you" from the end, how would i do that?
Due to variable url segments, i can't do {segment_2}{segment_3}{segment_4} as "you" might be the second or third or fourth variable.
Thanks