[fix] job application link, fixes #5066
diff --git a/erpnext/templates/generators/job_opening.html b/erpnext/templates/generators/job_opening.html
index 9cfa888..bbc5fee 100644
--- a/erpnext/templates/generators/job_opening.html
+++ b/erpnext/templates/generators/job_opening.html
@@ -12,8 +12,10 @@
<div>{{ description }}</div>
-<a class='btn btn-primary'
- href='/job_application?job_title={{ doc.job_title }}'>
+<p>
+ <a class='btn btn-primary'
+ href='/job_application?job_title={{ doc.name }}'>
{{ _("Apply Now") }}</a>
+</p>
{% endblock %}