-
Notifications
You must be signed in to change notification settings - Fork 193
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
"View issues on Github" link on Search result page does not work #1730
Comments
That's a bug. Thanks @tkbremnes |
That was added by @tagawa in #572 And it is working for individual issues, but not for issues search.
Two options here:
@tkbremnes did you need this feature? Or did you fall on it by accident? |
Fell onto it by accident. Don't even know where the link should have taken me, so don't know what to expect. |
I possibly broke this when I messed around with templates recently. I think it would be nice for this to work, but it will require a bit of work as @karlcow mentions. Perhaps a good way forward is to remove the link, and file a bug to add it back (with the proper webcompat -> github param translation). |
To see the raw body which is sent to the browser. This part has been set correctly. <main role="main" data-repo-path="webcompat/web-bugs/issues">
</main> Oh wait… <p>
<a class="wc-Link wc-GithubLink" href="https://github.com/webcompat/web-bugs/issues/"><span class="wc-GithubLink-Icon"></span>View issues on Github</a>
</p>
<p>
<span class="wc-GithubLink-DesktopOnly">Shortcut: Press <b>g</b> on your keyboard to be taken to the GitHub view of this page.</span>
</p> This is what is sent by the raw html response. Ah… indeed.
Does that mean the Jinja template is moot now? or at least not reflecting the current state of affairs. ok let's try to cook up a patch… Oh 💩 These are in a file I didn't touch with my commits. I don't think this should happen.
huh
|
Oh wait
Raising eyebrows… checking .gitignore
|
OK let's see
let's commit it and back to business. |
I fixed my woes with webcompat = origin here.
|
How to reproduce:
View issues on Github
link.It appears that the template is not stamping out the URL correctly, leading to the nonsensical URL
https://github.com/{{ config['ISSUES_REPO_URI'] }}/{{ number }}
Code line in question:
webcompat.com/webcompat/templates/issue.html
Line 24 in 2d77c21
The text was updated successfully, but these errors were encountered: