propublica / Capitol-Words

Scraping, parsing and indexing the daily Congressional Record to support phrase search over time, and by legislator and date
BSD 3-Clause "New" or "Revised" License
121 stars 34 forks source link

merge_slashes on isn't doing what it should #80

Closed timball closed 10 years ago

timball commented 10 years ago

wmt is bitching about > http://capitolwords.org/legislator/G000562-cory-gardner//

which has a double slash ... this shouldn't be a problem as merge_slashes is set ... grrr .

--timball

timball commented 10 years ago

whatever ... fixed it .

    # why is merge_slashes not dealing w/ this ?
    set $clean_uri        $uri$is_args$args;
    if ( $clean_uri != $request_uri ) {
        rewrite ^/(.*)      $scheme://$host/$1    permanent;
    }