You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very early and rough version and most likely for v2.0.0.
Introduction
There's a complexity to this issue:
Which one is the canonical link? This would still be something similar to the overwrite-duplicates setting. This will in essence be something like: which canonical would you prefer.
Then duplicates need to be added, but checking for parents and children will then depend on which variant you are of the page.
Case 1: same level siblings should be merged.
├─ page 1
└─ page 1
Only makes sense if we allow different slugs (aliases) for these.
Case 2: parent-child relationship
└─ page 1
└─ page 1
Different slugs, so both locations need to exist. Need to keep track of which alias we are on.
if they are not siblings, then we can add them as via a special aliases
a list of aliases need to be added so we can map aliases to the record
An intermediate lookup table is required and every lookup key is based on an alias.
Also an additional lookup table for canonicals need to be added.
Generation of breadcrumbs may differ depending on which tree branch we are on.
aliases[ alias => record ] -> new
canonicals[ record => alias ] -> new
children[ alias => array of children ]
parents[ alias => parent ]
slug[ alias => slug ]
For generating URLs:
We might need to look at the current stucture in order to determine what the link should be.
Maybe this issue is completely impossible because of that context-sensitivity.
The text was updated successfully, but these errors were encountered:
Very early and rough version and most likely for v2.0.0.
Introduction
There's a complexity to this issue:
Which one is the canonical link? This would still be something similar to the
overwrite-duplicates
setting. This will in essence be something like: which canonical would you prefer.Then duplicates need to be added, but checking for parents and children will then depend on which variant you are of the page.
Case 1: same level siblings should be merged.
Only makes sense if we allow different slugs (aliases) for these.
Case 2: parent-child relationship
Different slugs, so both locations need to exist. Need to keep track of which alias we are on.
Case 3: somewhere else
Basically the same as Case 2.
Conclusion
An intermediate lookup table is required and every lookup key is based on an
alias
.Also an additional lookup table for canonicals need to be added.
Generation of breadcrumbs may differ depending on which tree branch we are on.
aliases[ alias => record ]
-> newcanonicals[ record => alias ]
-> newchildren[ alias => array of children ]
parents[ alias => parent ]
slug[ alias => slug ]
For generating URLs:
We might need to look at the current stucture in order to determine what the link should be.
Maybe this issue is completely impossible because of that context-sensitivity.
The text was updated successfully, but these errors were encountered: