WSDOT / wsdot-website

Codebase for WSDOT's public Drupal 7 website hosted on Acquia.
0 stars 4 forks source link

Install Facet API Pretty Paths module #387

Closed waynedyck closed 6 years ago

waynedyck commented 6 years ago

The Facet API Pretty Paths module enables pretty paths for searches with Facet API rather than paths which look like this:

/projects/index?f%5B0%5D=field_project_status%3Aactive

waynedyck commented 6 years ago

Installing the module and activating it turns the above URL into this:

projects/index/field_project_status/active

This allows the URL to set the facet with a regular http request where the original URL with parameters does not.

The only thing is, taxonomy terms are also tagged with their respective ids,

/projects/index/field_organization_term_ref/rail-4829

which looks a little odd.

waynedyck commented 6 years ago

Based on the documentation it appears we can override the default URLs to reuse the existing term aliases.

For example this URL,

/projects/index/field_organization_term_ref/rail-4829

Can become,

/projects/index/division/rail