Skip to content

Suggestion: Question navigation buttons as links

Grigor Malo requested to merge link-buttons into master

Noticing that the current implementation of the back button is a bit buggy (assuming Back refers to the dashboard, if you opened the page on a new tab and click Back nothing happens), and in order to have the benefits of using client side rendering and having a real link (that you can open in new tab for example), i propose the following:

  • render the buttons as links by providing a valid href attribute (which it receives by props)
  • on a normal click, prevent default behavior (which loads the new page), and call the method provided by props to navigate to the new url using client side rendering

Merge request reports