Developer forum

Forum » CMS - Standard features » Button link downloads page instead of opening it!

Button link downloads page instead of opening it!

Ivan Marijanović
Ivan Marijanović
Reply

I have issue in standard paragraph where we defined link as button. Button is displayes on front page and when we click on button it downloads page instead of openning it!

Ivan


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Ivan,

Please check if there is a value in the Content type setting:

Page > Properties > Layout > Content type

If this is not empty or text/html then the browser might download the page instead.

If thats not the problem then please share a URL or show us the template with the button link.

Best regards,
Morten

 
Ivan Marijanović
Ivan Marijanović
Reply
This post has been marked as an answer

Hi Morten

I found the reason in RenderButton helper where is there is / in link it adds download to <a> element.

Ivan

Votes for this answer: 1

 

You must be logged in to post in the forum