diff --git a/powerdnsadmin/routes/domain.py b/powerdnsadmin/routes/domain.py index 3261264..556bc19 100644 --- a/powerdnsadmin/routes/domain.py +++ b/powerdnsadmin/routes/domain.py @@ -277,7 +277,7 @@ def changelog(domain_name): """ Returns a changelog for a specific pair of (record_name, record_type) """ -@domain_bp.route('//changelog/-', methods=['GET']) +@domain_bp.route('//changelog//', methods=['GET']) @login_required @can_access_domain @history_access_required diff --git a/powerdnsadmin/templates/domain.html b/powerdnsadmin/templates/domain.html index d821e6a..f616967 100755 --- a/powerdnsadmin/templates/domain.html +++ b/powerdnsadmin/templates/domain.html @@ -190,7 +190,7 @@ function show_record_changelog(record_name, record_type, e) { e.stopPropagation(); - window.location.href = "/domain/{{domain.name}}/changelog/" + record_name + ".-" + record_type; + window.location.href = "/domain/{{domain.name}}/changelog/" + record_name + "./" + record_type; } // handle changelog button $(document.body).on("click", ".button_changelog", function(e) {