mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-30 01:30:15 +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)
|
return render(template_name=self.template, request=request, context=context)
|
||||||
|
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
print(f'[+] Adding URL: {import_path}')
|
url = request.POST['url']
|
||||||
|
print(f'[+] Adding URL: {url}')
|
||||||
add(
|
add(
|
||||||
import_str=request.POST['url'],
|
import_str=url,
|
||||||
update_all=False,
|
update_all=False,
|
||||||
out_dir=OUTPUT_DIR,
|
out_dir=OUTPUT_DIR,
|
||||||
)
|
)
|
||||||
|
return redirect('/')
|
||||||
return render(template_name=self.template, request=request, context={})
|
|
||||||
|
|
||||||
|
|
||||||
class LinkDetails(View):
|
class LinkDetails(View):
|
||||||
|
Reference in New Issue
Block a user