fix(httpaste/controller/ui/paste): fix url baking
This commit is contained in:
parent
bf8e2c19cf
commit
04661720de
1 changed files with 4 additions and 2 deletions
|
|
@ -54,12 +54,14 @@ def get(**kwargs):
|
|||
|
||||
template = views.get_template("viewport/ui/paste/get.html")
|
||||
|
||||
|
||||
|
||||
base_path = f'paste/public/{kwargs["id"]}'
|
||||
|
||||
raw_paste_url = f'{request.host_url}{base_path}'
|
||||
if kwargs.get('user'):
|
||||
raw_paste_url = f'{request.host_url}{base_path}'
|
||||
base_path = f'paste/private/{kwargs["id"]}'
|
||||
|
||||
raw_paste_url = f'{request.host_url}{base_path}'
|
||||
paste_url = raw_paste_url
|
||||
|
||||
paste_url_query = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue