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

Redirect legacy search pages to canonical #6

Closed
ghost opened this issue Oct 30, 2019 · 0 comments · Fixed by #7
Closed

Redirect legacy search pages to canonical #6

ghost opened this issue Oct 30, 2019 · 0 comments · Fixed by #7
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Oct 30, 2019

Currently the search page format is as follows:

golang.cafe/Golang-{tag}-Jobs-In-{location}

Where tag can either be a skill (DevOps, SysAdmin, Backend) or a company name (Google, Apple)

There are some legacy pages which used to use query string instead of this canonical format. Here's the legacy format

golang.cafe/?l={location}&t={tag}

The above should emit a 301 translating the request URI into the new canonical format.

Eg. golang.cafe/?l=London&t=DevOps should redirect to golang.cafe/Golang-DevOps-Jobs-In-London

Current handler is here https://github.com/golang-cafe/golang.cafe/blob/3c02ac4/pkg/handler/std_handler.go#L19-L27

@ghost ghost added the enhancement New feature or request label Oct 30, 2019
@ghost ghost closed this as completed in #7 Nov 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants