Skip to content

Commit

Permalink
Make API documentation link relative
Browse files Browse the repository at this point in the history
Fixes #9607.
  • Loading branch information
eduardoj committed May 29, 2020
1 parent 75f28f9 commit 730aedb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/app/views/layouts/webui/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%ul
%li= link_to('Open Build Service', 'http://openbuildservice.org/')
%li= link_to('OBS Manuals', 'http://openbuildservice.org/help/manuals/')
%li= link_to('API Documentation', 'https://build.opensuse.org/apidocs/')
%li= link_to('API Documentation', apidocs_index_path)
%li= link_to('OBS Portal', 'http://en.opensuse.org/Portal:Build_service')
%li= link_to('Reporting a Bug', 'http://openbuildservice.org/support/')
- if Announcement.last.present?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%ul
%li= link_to('Open Build Service', 'http://openbuildservice.org/')
%li= link_to('OBS Manuals', 'http://openbuildservice.org/help/manuals/')
%li= link_to('API Documentation', 'https://build.opensuse.org/apidocs/')
%li= link_to('API Documentation', apidocs_index_path)
%li= link_to('OBS Portal', 'http://en.opensuse.org/Portal:Build_service')
%li= link_to('Reporting a Bug', 'http://openbuildservice.org/support/')
- if Announcement.last.present?
Expand Down
2 changes: 2 additions & 0 deletions src/api/test/functional/webui/spider_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def ignore_link?(link)
return true if link =~ %r{/live_build_log}
# we do not really serve binary packages in the test environment
return true if link =~ %r{/package/binary/}
# apidocs is not configured in test environment
return true if link.end_with?('/apidocs/index')
end

def getlinks(baseuri, body)
Expand Down

0 comments on commit 730aedb

Please sign in to comment.