Minor simplification - don't call the getter twice
Add a unit test for WICKET-5157
WICKET-5345 Url.canonical() breaks when there are two consecutive "parent" segments followed by a normal segment

Add a unit test that shows the problem
Remove .map files for jQuery.

If a developer wants to debug in production mode then (s)he has to add them explicitly