-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable URL goto feature #5135
Comments
The way I envision this is having a "follow_url=true" somewhere in the url of the badge. The user can then judge by themselves if they trust going to that endpoint or not. |
Badges have a link feature. It鈥檚 not turned for Endpoint right now but could be if it helps your use case. Could you try experimenting with a static badge with links and see if it works for you? In general for links to work, you need to embed the badge using The other thing we could possibly do is add a feature in Shields that would provide a link redirect for the endpoint badge. Although because of how caching works it might go to a newer or older link than the badge itself. |
this looks like
That also sounds good. Another ideea would be to just copy the endpoint url in the clipboard when clicking on the badge. I don't mind opening a tab by myself, as long as I have the url in the clipboard to fast-paste it in. |
The Markdown spec allows embedding HTML. Where are you serving the rendered Markdown? |
I'll see if I have time to play around further, I suspect not a lot. Thanks for the support! 馃憤 |
Yea, so on GitHub, links embedded into badges are not going to work. It looks like cl1p has a redirect feature. What if you post just the link into a second clipboard, and then wrap your badge with a link to that? By the way, is there anything that prevents other people from writing garbage to your clipboard? 馃 |
This is precisely what I'm using to display the endpoint in the badge. The query goes to cl1p which redirects to my build logs.
Yes. You can use basic auth to prevent unauthorized access, if need be. |
My suggestion is to post the link to a second cl1p and use that as your dynamic redirect target. |
馃搵 Description
I am currently generating a variable url in a badge, by pushing data to an online clipboard (i.e. cl1p) and then reading it in the badge:
(snapshot in case the data gets deleted):
The data in question represents build stat information.
I would like to be able to click-go to the displayed URL.
馃敆 Data
The data displayed by the badge is a simple json with an url.
馃帳 Motivation
This would be an awesome feature to have, since build logs outside of mainstream CI systems often change and typically contain a variable hash.
The text was updated successfully, but these errors were encountered: