diff --git a/src/Routing/Conditions/Url.php b/src/Routing/Conditions/Url.php
index <HASH>..<HASH> 100644
--- a/src/Routing/Conditions/Url.php
+++ b/src/Routing/Conditions/Url.php
@@ -145,8 +145,8 @@ class Url implements ConditionInterface {
 		// add a question mark to the end to make the trailing slash optional
 		$validation_regex = $validation_regex . '?';
 
-		// make sure the regex matches the beginning of the url
-		$validation_regex = '^' . $validation_regex;
+		// make sure the regex matches the entire url
+		$validation_regex = '^' . $validation_regex . '$';
 
 		if ( $wrap ) {
 			$validation_regex = '~' . $validation_regex . '~';
fix Url condition matching just the start of the path instead of the whole path