Skip to content

Set up redirects#107

Merged
bravegrape merged 3 commits intomasterfrom
set-up-redirects
Nov 12, 2019
Merged

Set up redirects#107
bravegrape merged 3 commits intomasterfrom
set-up-redirects

Conversation

@bravegrape
Copy link
Copy Markdown

@bravegrape bravegrape commented Nov 11, 2019

Context

Changing the information architecture as part of #97 meant that some links broke.

Changes proposed in this pull request

The scope of this PR is to redirect broken links so that links to the old pages don't return 404s, but take the user to the right place in the new information architecture.

I'm using the list @36degrees put together in issue #105 to keep track of the work:

From To Anchor Text Redirected to
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/not-expired-page.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/create_new_project.html Create the content files create_project/create_new_project/index.html
https://tdt-documentation.london.cloudapps.digital/publish_project/push_repo/ https://tdt-documentation.london.cloudapps.digital/create_new_project.html Create a new local documentation repo create_project/create_new_project/index.html
https://tdt-documentation.london.cloudapps.digital//publish_project/push_repo/ https://tdt-documentation.london.cloudapps.digital/create_new_project.html Create a new local documentation repo create_project/create_new_project/index.html
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/docs/frontmatter.md setting old_paths in the frontmatter This link never existed.
https://tdt-documentation.london.cloudapps.digital/create_project/multipage/ https://tdt-documentation.london.cloudapps.digital/create_project/multipage/search.html search feature amend_project/configuration/index.html
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/single_page.html add a partial line create_project/single_page/index.html
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/last-reviewed-only.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/expired-page.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/content.html Amend your content files amend_project/content/index.html
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital/frontmatter.html https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital//frontmatter.html https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry review_project/page-expiry/index.html
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/single_page.html add a partial line create_project/single_page/index.html
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/docs/frontmatter.md setting old_paths in the frontmatter This link never existed.
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/last-reviewed-only.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/content.html Amend your content files amend_project/content/index.html
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/expired-page.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/create_new_project.html Create the content files create_project/create_new_project/index.html
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/not-expired-page.png Unlikely to be linked to
https://tdt-documentation.london.cloudapps.digital//create_project/multipage/ https://tdt-documentation.london.cloudapps.digital//create_project/multipage/search.html search feature amend_project/configuration/index.html

https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/docs/frontmatter.md never existed as a link - it's always been wrong and it was never picked up because we don't have a link checker in place (yet!). Setting up a link checker is out of scope for this PR. There's a separate PR that adds the link checker and fixes the links: #107 😁

The broken image links apply when opening the link in a new tab. The images appear correctly in the page.

Closes #105

Guidance to review

Check the redirects work as described.

Andrea Szöllössi added 3 commits November 11, 2019 11:59
This is to make the URLs consistent with what they were before the 
restructuring, which also means the redirects will now work as they 
should.
@36degrees
Copy link
Copy Markdown
Contributor

36degrees commented Nov 11, 2019

I agree with setting up the redirects in case of any external links, but given we know the new URL would it make sense to update the broken links to go to the correct place, rather than 'via' the redirect? Saves a round-trip to the server, and avoids confusing folk who are editing in the future!

@bravegrape
Copy link
Copy Markdown
Author

bravegrape commented Nov 11, 2019

Yup, totally agree about fixing the links @36degrees - I'm working on that PR right now!
Here it is: #108 😁

@bravegrape bravegrape merged commit 4667bbb into master Nov 12, 2019
@bravegrape bravegrape deleted the set-up-redirects branch November 12, 2019 16:37
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.

Broken links

3 participants