[PR #11] [CLOSED] Support Rails relative_url_root configuration #63

Closed
opened 2026-02-27 22:07:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sibprogrammer/owp/pull/11
Author: @veloutin
Created: 2/29/2012
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • f619871 Support relative root url

📊 Changes

54 files changed (+275 additions, -250 deletions)

View changed files

📝 app/controllers/admin/backups_controller.rb (+1 -1)
📝 app/controllers/admin/event_log_controller.rb (+1 -1)
📝 app/controllers/admin/hardware_servers_controller.rb (+2 -2)
📝 app/controllers/admin/ip_addresses_controller.rb (+1 -1)
📝 app/controllers/admin/os_templates_controller.rb (+1 -1)
📝 app/controllers/admin/requests_controller.rb (+2 -2)
📝 app/controllers/admin/roles_controller.rb (+1 -1)
📝 app/controllers/admin/search_controller.rb (+1 -1)
📝 app/controllers/admin/server_templates_controller.rb (+1 -1)
📝 app/controllers/admin/tasks_controller.rb (+1 -1)
📝 app/controllers/admin/users_controller.rb (+1 -1)
📝 app/controllers/admin/virtual_servers_controller.rb (+5 -5)
📝 app/controllers/application.rb (+14 -4)
📝 app/controllers/iphone/base.rb (+1 -1)
📝 app/controllers/sessions_controller.rb (+1 -1)
📝 app/helpers/application_helper.rb (+10 -0)
📝 app/views/admin/backups/list.html.erb (+7 -7)
📝 app/views/admin/dashboard/index.html.erb (+3 -3)
📝 app/views/admin/event_log/list.html.erb (+3 -3)
📝 app/views/admin/hardware_servers/list.html.erb (+15 -15)

...and 34 more files

📄 Description

  • add rr() helper in app/controllers/application.rb
    and app/helpers/application_helper.rb that prepends
    Rails.configuration.action_controller[:relative_url_root]
  • use it everywhere a link is built
  • provide a ROOT to the static application.js
  • update css image links from /image to ../image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sibprogrammer/owp/pull/11 **Author:** [@veloutin](https://github.com/veloutin) **Created:** 2/29/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`f619871`](https://github.com/sibprogrammer/owp/commit/f6198716174ecdc5ad5c08ea899181cc935022f4) Support relative root url ### 📊 Changes **54 files changed** (+275 additions, -250 deletions) <details> <summary>View changed files</summary> 📝 `app/controllers/admin/backups_controller.rb` (+1 -1) 📝 `app/controllers/admin/event_log_controller.rb` (+1 -1) 📝 `app/controllers/admin/hardware_servers_controller.rb` (+2 -2) 📝 `app/controllers/admin/ip_addresses_controller.rb` (+1 -1) 📝 `app/controllers/admin/os_templates_controller.rb` (+1 -1) 📝 `app/controllers/admin/requests_controller.rb` (+2 -2) 📝 `app/controllers/admin/roles_controller.rb` (+1 -1) 📝 `app/controllers/admin/search_controller.rb` (+1 -1) 📝 `app/controllers/admin/server_templates_controller.rb` (+1 -1) 📝 `app/controllers/admin/tasks_controller.rb` (+1 -1) 📝 `app/controllers/admin/users_controller.rb` (+1 -1) 📝 `app/controllers/admin/virtual_servers_controller.rb` (+5 -5) 📝 `app/controllers/application.rb` (+14 -4) 📝 `app/controllers/iphone/base.rb` (+1 -1) 📝 `app/controllers/sessions_controller.rb` (+1 -1) 📝 `app/helpers/application_helper.rb` (+10 -0) 📝 `app/views/admin/backups/list.html.erb` (+7 -7) 📝 `app/views/admin/dashboard/index.html.erb` (+3 -3) 📝 `app/views/admin/event_log/list.html.erb` (+3 -3) 📝 `app/views/admin/hardware_servers/list.html.erb` (+15 -15) _...and 34 more files_ </details> ### 📄 Description - add rr() helper in app/controllers/application.rb and app/helpers/application_helper.rb that prepends Rails.configuration.action_controller[:relative_url_root] - use it everywhere a link is built - provide a ROOT to the static application.js - update css image links from /image to ../image --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:07:27 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/owp#63
No description provided.