Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add postcode search to /mp page if redirect fails #865

Merged
merged 1 commit into from May 26, 2015

Conversation

struan
Copy link
Member

@struan struan commented May 18, 2015

If someone arrives at /mp without either a session with a postcode or a query string then present them with a postcode lookup dialog and also a link to the appropriate list of representatives for the page type.

default:
$rep = 'MP';
$SEARCHURL = new \URL('mp');
$SEARCHURL = $SEARCHURL->generate();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could use /postcode/ in all cases? Might as well stick with the single redirector unless going straight to MP does something different.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use /mp/ it redirects straight to the MP page whereas postcode shows you all the representatives for that postcode so /mp/ saves a click for the user.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, makes sense.

@dracos
Copy link
Member

dracos commented May 19, 2015

Looks good.

@dracos
Copy link
Member

dracos commented May 26, 2015

Great!

If you visit /mp, /msp etc without a postcode set display a postcode
search box as well as the link to all MPs

Fixes #450
@struan struan force-pushed the issues/450-postcode-search-on-mp-page branch from 79ee715 to 75138b5 Compare May 26, 2015 14:31
@struan struan merged commit 75138b5 into master May 26, 2015
@jacksonj04 jacksonj04 deleted the issues/450-postcode-search-on-mp-page branch June 8, 2015 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants