Project

General

Profile

Feature #4160

foreman_url should be able to append parameters, e.g. static

Added by Dominic Cleal over 6 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

The foreman_url renderer function should take additional options so it can automatically append parameters to the URL. Currently you have to append to it in the template, which is unreliable as parameters may need appending with a "?" or "&" prefix depending on whether it's the first parameter in the query string or not.

e.g. foreman_url("provision", :params => { :static => "yes" })


Related issues

Related to Foreman - Refactor #29733: Deprecate calling foreman_url without argumentsClosed

Associated revisions

Revision 170b56c6 (diff)
Added by Lukas Zapletal 8 months ago

Fixes #4160 - foreman_url params option

History

#1 Updated by The Foreman Bot 11 months ago

  • Assignee set to Lukas Zapletal
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7086 added

#2 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 2.0.0 added

#3 Updated by Lukas Zapletal 8 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Lukas Zapletal 3 months ago

  • Related to Refactor #29733: Deprecate calling foreman_url without arguments added

Also available in: Atom PDF