Hello
Zyje_sobie,
what you are referring to is the default behavior of the topic page with system-name
ContactUs. Its content gets automatically added on top of the
Contact us page, just above the form. But also, just like any other topic page, a new separate link is created for it.
You cannot stop or remove this, but if you leave the topic page published and do not check any of the
Include in ... checkboxes, the link to it will not be added anywhere and the users will not be able to access it unless they know the exact URL of course.
What else you can do is to always redirect your customers to the page with the form even if they try to open the Topic contact page. You can do so by adding the following code to your
TopicDetails.cshtml file:
@if (Model.SystemName == "ContactUs" ) {
<script type="text/javascript" asp-location="Footer">
$(document).ready(function () {
if (window.location.pathname === "/contactus-2") {
window.location.pathname = "/contactus";
}
})
</script>
}
Hope this was helpful.
Best Regards,
Valentin.