Wrong github URLs

's Avatar

alex

04 Dec, 2012 06:46 PM

Hey all,

I'm wondering if I'm doing something wrong. I've created some documentation from a github project, but the "View on Github" links are going to the wrong URL and giving a 404. Is there some sort of configuration I'm missing?

This is the peoject I'm talking about: http://rubydoc.info/github/colibri-software/locomotive_plugins

Alex

  1. Support Staff 1 Posted by lsegal on 04 Dec, 2012 08:00 PM

    lsegal's Avatar

    Serms to work here. Still having the issue? 

  2. 2 Posted by Alex Sanford on 04 Dec, 2012 09:19 PM

    Alex Sanford's Avatar

    Yeah I'm still seeing an issue. For example: when I go to this page (
    http://rubydoc.info/github/colibri-software/locomotive_plugins/Locomotive/Plugin),
    scroll down to the "config" instance attribute, and click on "View on
    Github", I get a 404 error.

    It's trying to send me here:
    https://github.com/colibri-software/locomotive_plugins/blob/Locomotive/lib/locomotive/plugin.rb#L116

    And github gives me the 404 page when it tries to go there. I assume it
    should be going here instead:
    https://github.com/colibri-software/locomotive_plugins/blob/master/lib/locomotive/plugin.rb#L116

    Thanks!
    Alex

  3. 3 Posted by alex on 05 Dec, 2012 05:18 PM

    alex's Avatar

    Yeah I'm still seeing an issue. For example: when I go to this page (http://rubydoc.info/github/colibri-software/locomotive_plugins/Loco...), scroll down to the "config" instance attribute, and click on "View on Github", I get a 404 error.

    It's trying to send me here: https://github.com/colibri-software/locomotive_plugins/blob/Locomot...

    And github gives me the 404 page when it tries to go there. I assume it should be going here instead: https://github.com/colibri-software/locomotive_plugins/blob/master/...

    Thanks!

  4. Support Staff 4 Posted by lsegal on 16 Jan, 2013 07:51 PM

    lsegal's Avatar

    This is a known issue when you don't include the /master suffix as part of the initial URL for Github links. This is on the TODO list to be fixed, but the easy workaround is to just link to your specific branch directly: http://rubydoc.info/github/colibri-software/locomotive_plugins/master --- rubydoc.info links should already do this automatically.

  5. 5 Posted by James Cuzella on 19 Feb, 2013 07:12 PM

    James Cuzella's Avatar

    As a user, I'm seeing this also in the webrat documentation. An example is on the page for SaveAndOpenPage::open_in_browser.

    The View on Github link is incorrect:

    https://github.com/brynary/webrat/blob/Webrat/lib/webrat/core/save_...

    Here is the correct and currently working link:

    https://github.com/brynary/webrat/blob/master/lib/webrat/core/save_...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac