Helpers frontend: fixed a bug in the navigation helper where regex was to greedy. Also added a test case for it