Skip to content

Commit 73d920a

Browse files
committed
Remove trailing slash from URI after adding prefix.
Signed-off-by: Jason Lewis <[email protected]>
1 parent 6b72fb9 commit 73d920a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ protected function addPrefixToUri($uri)
479479
return $uri;
480480
}
481481

482-
return '/'.trim($this->prefix, '/').'/'.$uri;
482+
return rtrim('/'.trim($this->prefix, '/').'/'.$uri, '/');
483483
}
484484

485485
/**

0 commit comments

Comments
 (0)