Permalink
Browse files

better URLs for individual division pages

  • Loading branch information...
struan committed May 10, 2017
1 parent 32fd00e commit a1765f628fc82b826520de491719769113ac02cb
View
@@ -76,6 +76,10 @@ RewriteRule ^/mp/(['a-zA-Z_+-]+)/([\(\)\.a-zA-Z_+,'-]+)$ /mp/index.php?n=$1
RewriteRule ^/mp/(['a-zA-Z_\ +-]+)\ mp/?$ /mp/index.php?n=$1 [QSA]
RewriteRule ^/mp/(['a-zA-Z_\ +-]+)/?$ /mp/index.php?n=$1 [QSA]
# Division results pages
RewriteRule ^/divisions/(pw-[0-9\-a-z]*)$ /divisions/division.php?vote=$1 [QSA]
RewriteRule ^/divisions/(pw-[0-9\-a-z]*)/mp/([0-9]*)$ /divisions/division.php?vote=$1&p=$2 [QSA]
# Public Bill Committees
RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])$ /pbc/$1/ [R=permanent]
RewriteRule ^/pbc/([0-9][0-9][0-9][0-9]-[0-9][0-9])/$ /section.php?type=pbc&session=$1 [QSA]
@@ -20,7 +20,7 @@
<?php
$current_date = $division['date'];
} ?>
<a href="/divisions/division.php?vote=<?= $division['division_id'] ?>" class="business-list__title">
<a href="/divisions/<?= $division['division_id'] ?>" class="business-list__title">
<h3><?= $division['division_title'] ?></h3>
<span class="business-list__meta">Division number <?= $division['number'] ?></span>
</a>
@@ -1,6 +1,6 @@
<li id="<?= $division['division_id'] ?>" class="<?= $division['strong'] || $show_all ? 'policy-vote--major' : 'policy-vote--minor' ?>">
<span class="policy-vote__date">On <?= strftime('%e %b %Y', strtotime($division['date'])) ?>:</span>
<span class="policy-vote__text"><?= $full_name ?><?= $division['text'] ?></span>
<a class="vote-description__source" href="/divisions/division.php?vote=<?= $division['division_id'] ?>&p=<?= $person_id ?>">Show vote</a>
<a class="vote-description__source" href="/divisions/<?= $division['division_id'] ?>/mp/<?= $person_id ?>">Show vote</a>
</li>

0 comments on commit a1765f6

Please sign in to comment.