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

back link support #2023

Closed
wants to merge 3 commits into from
Closed

back link support #2023

wants to merge 3 commits into from

Conversation

yrong
Copy link

@yrong yrong commented Jun 9, 2020

No description provided.

@yrong
Copy link
Author

yrong commented Jun 9, 2020

backgroud: #1998

if (page.backLinks && page.backLinks.length) {
page.backLinkPages = []
for (backLink of page.backLinks) {
backLinkPage = await backLink.$relatedQuery('page').column(['id', 'path', 'title'])
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be optimized with Promise.all, no need to wait page by page

@regevbr
Copy link
Contributor

regevbr commented Jun 14, 2020

@yrong if I understand correctly, you want to provide links to other locals of the current page?
If so, I think it will make more sense to add the locale to the view... Also, you should probably filter the current page from the back links

@yrong
Copy link
Author

yrong commented Jun 15, 2020

@regevbr some fix per your suggestion

a542009

@NGPixel NGPixel closed this Jul 15, 2020
@NGPixel
Copy link
Member

NGPixel commented Jul 15, 2020

Change target branch to dev for this PR.

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.

3 participants