-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix(frontend): backlink #1339
fix(frontend): backlink #1339
Conversation
@@ -103,7 +103,7 @@ exports[`<SearchResults/> should render results 1`] = ` | |||
> | |||
<a | |||
class="c2" | |||
href="/question/mer-il-est-fou?q=search test" | |||
href="/question/mer-il-est-fouq=search test" |
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.
chelou ce lien
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.
J'ai oublié le "?" dans la string 😞
}} | ||
as={`/${getRouteBySource(item.source)}/${item.slug}?q=${query}`} | ||
as={`/${getRouteBySource(item.source)}/${item.slug}${query && |
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.
${query ? query : ""} sinon la valeur "falsy" de query va etre interprété en string
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.
Yes bien vu
}} | ||
as={`/${getRouteBySource(source)}/${slug}?q=${query}`} | ||
as={`/${getRouteBySource(source)}/${slug}${query && `q=${query}`}`} |
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.
idem
@@ -11,7 +11,7 @@ import { LinkContent } from "./LinkContent"; | |||
const ListLink = ({ | |||
focused, | |||
item: { source, slug, url }, | |||
query, | |||
query = null, |
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.
pourquoi cette valeur par default ?
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.
Un oublie je faisais des test, j'e l'ai vraiment faite à l'arrache cette PR !
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.
je te laisse faire les corrections avant de merger (pas comme moi 🥇 )
Merci j'ai vraiment fait n'imp sur cette PR ! |
0761cab
to
566eb14
Compare
as discussed, fix the issue where the theme's slug is passed in the "q" param of a fiche