0

for some reason our product pages like to redirect to the 404 page not found every now and again but this is usually resolved by refreshing the page.

Unfortunately not everybody is going to know this and the only current option we have is a hyperlink/button for "Return to Home Page" which obviously isn't ideal and unnecessarily lengthens the customer journey.

Is there a way to add a "Refresh/Reload This Page" in to the CMS page?

Preferably in a way I can add it using the wysiwyg or html as i'm not clued up on Java.

Thanks!

0

Simple Way, Admin->CMS->Page-> then select no-route as URL key page, then add this:

<p><button id="refresh">Refresh</button></p>

<script type="text/javascript">
// <![CDATA[
    jQuery('#refresh').click(function() {
        location.reload();
    });
// ]]>
</script>
  • Thanks, will give that a go when I get a chance! Is there anything I can add to that which will dictate the size / dimensions of the button? – Rob Aug 21 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.