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

Make the referrer column user friendly #226

Merged
merged 2 commits into from May 5, 2015
Merged

Make the referrer column user friendly #226

merged 2 commits into from May 5, 2015

Conversation

@fofr
Copy link
Contributor

@fofr fofr commented May 5, 2015

The long referrer URLs are often unreadable, squished onto multiple lines and unusable.

  • For external sites show only the hostname (stripping out www as well)
  • When a search has been performed (when there is a “q” parameter), extract and show the search term
  • When referred internally, show only the gov.uk path
  • All links continue to link through to the full referrer
  • When referrer is unknown or blank, leave an empty cell

Before

screen shot 2015-05-05 at 16 39 59

After

screen shot 2015-05-05 at 16 39 05

fofr added 2 commits May 5, 2015
The long referrer URLs are often unreadable, squished onto multiple
lines and unusable.

* For external sites show only the hostname (stripping out `www` as
well)
* When a search has been performed (when there is a “q” parameter),
extract and show the search term
* When referred internally, show only the gov.uk path
* All links continue to link through to the full referrer
* When referrer is unknown or blank, leave an empty cell
benilovj added a commit that referenced this pull request May 5, 2015
Make the referrer column user friendly
@benilovj benilovj merged commit 1d51a3f into master May 5, 2015
1 check passed
1 check passed
default "Build #163 succeeded on Jenkins"
Details
@benilovj benilovj deleted the better-referrer branch May 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.