Fix bugs in URL generation for stack viewer
Merge branch 'stack_view'

* stack_view:
  Fix bugs in URL generation for stack viewer