Navigating 'back' to Path loses last Segment?

I am removing params from a URL by navigating back to the path using the following:

This works, except you’ll notice I’m having to append the last segment of the URL because Bubble seems to not see it.

For example:

[URL/home/account/settings] is returned as [URL/home/account] and the settings is lost from the path.

I’m added a “/” in the arbitrary text, and adding the final segment manually.

Does anyone know why this is happening? My solution works, but have I done something wrong or am I just misunderstanding the function?

Note: I am using this method because I am passing data out of an RE via the URL as a param. This is not required once closed, so the param needs to be removed from the URL again.