<a href="{% url 'ticket_details' ticket_id=ticket.id %}">
path('showmessage/<str:msg>/', views.showmessage, name = 'showmessage')
<a href="{% url myview %}?office=foobar">