Skip to content

Create redirects in Octane so legacy urls don't die #719

Closed

Description

@jenweber

In the Octane branch, we need to create redirects so that if someone visits a release url that doesn't exist anymore, they end up at the page that now handles that topic.

This can be done by creating folders and files that have the redirect, but not include those pages in pages.yml. See other version folders for how to do redirects.

You can see examples of redirects in https://github.com/ember-learn/guides-source/pull/297/files

Activity

  1. theroncross commented on Jun 29, 2019

    @theroncross
    Contributor

    I'm interested in taking this on, but would like to clarify with an example before I get started.

    Comparing the following:
    https://guides.emberjs.com/release/getting-started/js-primer/
    https://octane-guides-preview.emberjs.com/release/working-with-javascript/learning-javascript/

    We need to replace the content of guides/release/getting-started/js-primer.md with the following:

    ---
    redirect: working-with-javascript/learning-javascript
    ---
    

    Is that correct?

  2. llunn commented on Aug 8, 2019

    @llunn
    Contributor

    I believe the way theses redirects work is the source of #971

  3. added
    help wanted
    on Sep 1, 2019
  4. MelSumner commented on Sep 1, 2019

    @MelSumner
    Member

    @theroncross yes that's correct

  5. theroncross commented on Sep 13, 2019

    @theroncross
    Contributor

    Quick question - it looks like we still have /templates/links, but there isn't an entry for it in the table of contents widget on the left.

    Intentional? Should I open an issue and PR to add it?

  6. added
    help wanted
    and removed
    help wanted
    on Dec 14, 2019
  7. locks commented on May 1, 2020

    @locks
    Contributor

    @jenweber I believe you did a bunch of redirect work, do you remember if it addressed this issue?

  8. jenweber commented on May 1, 2020

    @jenweber
    ContributorAuthor

    Yep, this was solved before launch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Octanehas a PRhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions