forked from 0x2620/pandora
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]
|
||||
if len(url) > 2:
|
||||
layer = url[2]
|
||||
alias = get_object_or_404(models.IDAlias, old=hid)
|
||||
url = '/%s' % alias.new
|
||||
elif view.startswith('L'):
|
||||
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:
|
||||
url += '/' + {
|
||||
'editor': 'timeline',
|
||||
|
|
Loading…
Reference in a new issue