Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
aa
wiki
Commits
5b5a6a00
Commit
5b5a6a00
authored
Mar 04, 2013
by
Alexandre Leray
Browse files
Computes the url to index in page_edit view
It was set to localhost before, therefore breaking when deploying ths site
parent
bfd0dea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
aawiki/views.py
View file @
5b5a6a00
...
...
@@ -253,10 +253,11 @@ def page_edit(request, slug):
page
.
obj_create
(
bundle
,
request
=
request
)
# indexes the page in the RDF store
url
=
reverse
(
'aawiki:page-detail'
,
kwargs
=
{
'slug'
:
slug
})
AAResource
(
"http://localhost:8000"
+
url
).
index
()
path
=
reverse
(
'aawiki:page-detail'
,
kwargs
=
{
'slug'
:
slug
})
url
=
'%s://%s%s'
%
(
request
.
is_secure
()
and
'https'
or
'http'
,
request
.
get_host
(),
path
)
AAResource
(
url
).
index
()
return
redirect
(
url
)
return
redirect
(
path
)
else
:
try
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment