correctly rewrite admin template path