commonwealth-of-puerto-rico / fortaleza

Modules and solutions implemented within the Drupal iteration (yet not limited to Drupal) of the Executive Office of the Governor of Puerto Rico
6 stars 3 forks source link

Usability/Theming: Going back to the Home page (#3) [originally posted by rubenvarela] #3

Closed rfalfaro closed 11 years ago

rfalfaro commented 11 years ago

If you reach a "Page Not Found" error on the website, for example:

7f3a56b2-b8f0-11e2-92e0-bf7357ba741d

Link: http://www.fortaleza.pr.gov/asldfasdflaksdfjlaksdfj

You don't have an easy or intuitive way to go back to the home page. On most websites, clicking the logo will take you back. Not a single element shown will take you back.

Solution, in the theme, the logo is a separate img. Simply wrap the img tag inside an anchor tag pointing/linking/referencing the root of the website /.

If you'd like, you could construct the url of the base. With Drupal you could use

global $base_root; print $base_root;
which would give you the base.

There are multiple ways in which it can be done.