mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 17:19:53 +02:00
fix add page redirect
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user