redirect selected layer
This commit is contained in:
parent
5d6f439da9
commit
525fab0400
1 changed files with 9 additions and 2 deletions
|
@ -12,8 +12,15 @@ def padma_video(request, url):
|
||||||
view = url[1]
|
view = url[1]
|
||||||
if len(url) > 2:
|
if len(url) > 2:
|
||||||
layer = url[2]
|
layer = url[2]
|
||||||
alias = get_object_or_404(models.IDAlias, old=hid)
|
elif view.startswith('L'):
|
||||||
url = '/%s' % alias.new
|
layer = view
|
||||||
|
view = None
|
||||||
|
if layer:
|
||||||
|
alias = get_object_or_404(models.LayerAlias, old=layer)
|
||||||
|
url = '/%s' % alias.new
|
||||||
|
else:
|
||||||
|
alias = get_object_or_404(models.IDAlias, old=hid)
|
||||||
|
url = '/%s' % alias.new
|
||||||
if view:
|
if view:
|
||||||
url += '/' + {
|
url += '/' + {
|
||||||
'editor': 'timeline',
|
'editor': 'timeline',
|
||||||
|
|
Loading…
Reference in a new issue