Wrong github URLs

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. Serms to work here. Still having the issue? 

  2. 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. 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. 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. 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 only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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