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

[PT-905] bugfix/redirect from uri to version #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slucchini
Copy link
Contributor

@slucchini slucchini commented Nov 13, 2016

Updated the page redirects so that if a user tries to go directly to a root page (with parent = 0) via the URL, it will redirect to the home page with that version selected.

For example, on demo-docs.easydita.com, if you type into the address bar:

http://demo-docs.easydita.com/jorsek-testing/

Now, it will redirect you to

http://demo-docs.easydita.com/?version=20757

(The home page with "Jorsek Testing" selected as the version.)

…a root page (with parent = 0) via the URL, it will redirect to the home page with that version selected.
get_template_part( 'template-parts/content', 'user-guide-content' );
}
} else if ($page_type == 'faq') {
if ($page_type == 'faq') {

Choose a reason for hiding this comment

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

Should we use ===?

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.

None yet

2 participants