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 /form to /forms for consistency #7035

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Oct 6, 2016

The main guide is called /forms, but the sub-guides are in /form/.... When restructuring the docs, we decided this was the correct naming, so we shouldn't change this.

However, I think it would be nice to redirect /form to /forms (I'm used to simply remove the sub-guide slug from the URL to visit the main guide).

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

👍

@xabbuh
Copy link
Member

xabbuh commented Oct 7, 2016

Won't this also redirect /form/foo.html to /forms/foo.html?

@javiereguiluz I think you implemented the redirection logic. Can you please check this?

@javiereguiluz
Copy link
Member

@xabbuh no, that won't happen. The exception listener takes the contents of https://github.com/symfony/symfony-docs/blob/master/_build/redirection_map and treats each entry as a separate URL, so only /form would be redirected to /forms and the rest of form articles will remain unaffected.

@xabbuh
Copy link
Member

xabbuh commented Oct 14, 2016

Thank you Wouter.

@xabbuh xabbuh merged commit d8e4abe into symfony:2.7 Oct 14, 2016
xabbuh added a commit that referenced this pull request Oct 14, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

Redirect /form to /forms for consistency

The main guide is called `/forms`, but the sub-guides are in `/form/...`. When restructuring the docs, we decided this was the correct naming, so we shouldn't change this.

However, I think it would be nice to redirect `/form` to `/forms` (I'm used to simply remove the sub-guide slug from the URL to visit the main guide).

Commits
-------

d8e4abe Redirect /form to /forms for consistency
@wouterj wouterj deleted the redirect-form-to-forms branch October 15, 2016 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants