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

Add redirection functionality to default layout #230

Merged
merged 1 commit into from Jan 12, 2023
Merged

Conversation

vigejolla
Copy link
Member

Redirection can be used with a simple redirect_to line in front matter.

Redirection can be used with a simple redirect_to line in front matter.

Signed-off-by: Ville Nummela <ville.nummela@jolla.com>
Copy link
Contributor

@jovirkku jovirkku left a comment

Choose a reason for hiding this comment

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

This looks ok to me on principal level -- I do not know how to test this easily.

@vigejolla
Copy link
Member Author

This looks ok to me on principal level -- I do not know how to test this easily.

You can test with local jekyll instance, just follow the instructions in README.md. e.g. Create a directory Support/Help_Articles/Android_App_Support/Test, place README.md there, with these lines on top:

---
permalink: Support/Help_Articles/Android_App_Support/Test
parent: Android App Support
redirect_to: /Support/Help_Articles/Android_App_Support/Aptoide
layout: default
nav_order: 1000
---

Open http://localhost:4000/Support/Help_Articles/Android_App_Support/Test and end up on the aptoide page.

@jovirkku
Copy link
Contributor

This redirection mechanism appears to work. I tested it after getting the instructions from vige.

Copy link
Contributor

@sledges sledges left a comment

Choose a reason for hiding this comment

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

All good:)

@vigejolla vigejolla merged commit f0de199 into master Jan 12, 2023
@vigejolla vigejolla deleted the jb59789 branch January 12, 2023 05:55
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

3 participants