dynamic router template and logic
removing ~ from photos~/
dynamic router templates & logic