13

I have three revisions of my fiddle (http://jsfiddle.net/journeymanmw/9xLtH/3/) and I’m constantly updating it. I want to have a reference to the latest available revision so I don’t have to update the revision number in the URL every time I navigate to it.

Is it possible?

7
  • 1
    That would be good information to add to your question.
    – ale
    Nov 4, 2013 at 15:30
  • 1
    it is easily visible if you compare them :) Nov 4, 2013 at 15:32
  • 2
    check webapps.stackexchange.com/questions/12033/… ("Set as Base")
    – Nicolas78
    Apr 15, 2015 at 9:30
  • 1
    @Nicolas78 well, it might be of use as emergency workaround, since it resets the history, thanks Apr 22, 2015 at 10:54
  • 2
    Stas, it doesn't erase the history, at least not any more. All revisions are still available with suffixes /0/, /1/, /2/, . . . @Nicolas78 really does have the answer to this question with the ("Set as Base") button -- AS LONG AS you passed around the URL without any version suffix in the first place. That can be "set" to any revision later. Example: I set jsfiddle.net/BobStein/ty640uva to jsfiddle.net/BobStein/ty640uva/2
    – Bob Stein
    Oct 31, 2015 at 17:46

2 Answers 2

3

Adding /latest/ to the end of the URL seems to work.

6
  • 1
    No authoritative answer, but it does appear that any text selects the latest version, so my reply may not be that robust.
    – Blaise
    Dec 26, 2017 at 17:06
  • 8
    Doesn't work (anymore). Appending any text (including /latest/) selects the base version, not the latest revision.
    – Harsh
    Feb 14, 2018 at 7:28
  • Works again. /latest and /latest/ do what they say, /othertext/ gives error 404. Apr 16, 2022 at 19:18
  • 1
    The /latest trick does not work for me as of June 2022.
    – abulka
    Jun 8, 2022 at 23:58
  • The /latest/ trick probably doesn't work – especially for public fiddles not saved by registered users – due to security concerns. Imagine if you create a fiddle and publish it, then I go in and edit it so that the "latest" version attacks the user in some way... or attacks someone else? Not cool if /latest/ always gives the most-recently-saved version. The set as base capability makes the most sense, but can only be safely used by registered users. Jun 28, 2022 at 16:58
1

Not 100% fit with your demand but nearly!

When you log into JsFiddle, at the top menu bar, you'll get a Set as Base button, which will make the revision you're working on the base version.

And then use your base JSFiddle link http://jsfiddle.net/journeymanmw/9xLtH/

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.