-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update link resolver #11190
base: main
Are you sure you want to change the base?
Update link resolver #11190
Conversation
# Conflicts: # content/webapp/pages/series/[seriesId].tsx
Size Change: +95 B (+0.01%) Total Size: 983 kB
ℹ️ View Unchanged
|
if ( | ||
type === 'exhibition-guides' || | ||
type === 'exhibition-texts' || | ||
type === 'exhibition-highlight-tours' | ||
) | ||
return `/guides/exhibitions/${id}`; | ||
return `/guides/exhibitions/${uid}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of unrelated to this ticket, but am I correct in thinking this could potentially link to a 404 since it only uses one of the guides' id?
@@ -22,8 +22,10 @@ export const getServerSideProps = async context => { | |||
|
|||
const visualStoryDocument = visualStoriesQuery.results.find(result => { | |||
return ( | |||
// TODO once redirects are in place we should only compare with uid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we link to a ticket (is there one)?
@@ -22,8 +22,10 @@ export const getServerSideProps = async context => { | |||
|
|||
const visualStoryDocument = visualStoriesQuery.results.find(result => { | |||
return ( | |||
// TODO once redirects are in place we should only compare with uid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
What does this change?
For #11074
How to test
How can we measure success?
Human readable uid is present in the url of a page rather than the id of the document
Have we considered potential risks?