Skip to content

Commit

Permalink
fixes issue with caching of route params
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Aug 19, 2019
1 parent aa4a08e commit 8aacc31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions masonite/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ def route(self, name, params={}, full=False):
try:
route = self._get_named_route(name, params)
except KeyError:
params = {}
params.update(self.url_params)
route = self._get_named_route(name, params)

Expand Down

0 comments on commit 8aacc31

Please sign in to comment.