mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
fix add page redirect
This commit is contained in:
parent
b9e17fa0d1
commit
094beac1d9
1 changed files with 4 additions and 4 deletions
|
@ -53,14 +53,14 @@ class AddLinks(View):
|
|||
return render(template_name=self.template, request=request, context=context)
|
||||
|
||||
def post(self, request):
|
||||
print(f'[+] Adding URL: {import_path}')
|
||||
url = request.POST['url']
|
||||
print(f'[+] Adding URL: {url}')
|
||||
add(
|
||||
import_str=request.POST['url'],
|
||||
import_str=url,
|
||||
update_all=False,
|
||||
out_dir=OUTPUT_DIR,
|
||||
)
|
||||
|
||||
return render(template_name=self.template, request=request, context={})
|
||||
return redirect('/')
|
||||
|
||||
|
||||
class LinkDetails(View):
|
||||
|
|
Loading…
Add table
Reference in a new issue