openfisca / legislation-explorer

Explore legislation formulas and parameters.
https://legislation.demo.openfisca.org
GNU Affero General Public License v3.0
26 stars 13 forks source link

Match pathname before :name in routes #200

Closed bonjourmauko closed 5 years ago

bonjourmauko commented 5 years ago

Fixes #199

By matching pathname before :name in routes, we're sure it is exluded from the :name match, hence not triggering the ParameterOrVariable component rendering.

This is what was causing the loading div to be rendered in home page, having as a side effect the style bug.

To test, follow #199 example.