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

fix(frontend): backlink #1339

Merged
merged 4 commits into from
Sep 27, 2019
Merged

fix(frontend): backlink #1339

merged 4 commits into from
Sep 27, 2019

Conversation

UnbearableBear
Copy link
Contributor

@UnbearableBear UnbearableBear commented Sep 26, 2019

as discussed, fix the issue where the theme's slug is passed in the "q" param of a fiche

@@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

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

chelou ce lien

Copy link
Contributor Author

@UnbearableBear UnbearableBear Sep 27, 2019

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 &&
Copy link
Contributor

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

Copy link
Contributor Author

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}`}`}
Copy link
Contributor

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,
Copy link
Contributor

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 ?

Copy link
Contributor Author

@UnbearableBear UnbearableBear Sep 27, 2019

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 !

Copy link
Contributor

@lionelB lionelB left a 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 🥇 )

@UnbearableBear
Copy link
Contributor Author

Merci j'ai vraiment fait n'imp sur cette 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