mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed remaining places that needed datasette.urls, closes #1025
This commit is contained in:
parent
0d1763fb2f
commit
091441a444
8 changed files with 15 additions and 14 deletions
|
|
@ -218,7 +218,7 @@ class DataView(BaseView):
|
|||
elif kwargs.get("table"):
|
||||
kwargs["table"] = urllib.parse.unquote_plus(kwargs["table"])
|
||||
|
||||
should_redirect = "/{}-{}".format(name, expected)
|
||||
should_redirect = self.ds.urls.path("{}-{}".format(name, expected))
|
||||
if kwargs.get("table"):
|
||||
should_redirect += "/" + urllib.parse.quote_plus(kwargs["table"])
|
||||
if kwargs.get("pk_path"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue