Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Query string ang html::anchor
  • Hello I have problem with adding query string to anchor using html::anchor metod and url_suffix. I don't find any method to pass the query string to anchor because library produce something like: /search/2.html?q=query.html (from Html::anchor('search.html?q=query) Is there any method to avoid something like that? If not, I bypassed this creating new Uri class with method create and change line 183 in original fie from:
    substr($url, -1) != '/' and $url .= \Config::get('url_suffix');
    
    to:
    substr($url, -1) != '/' and !strpos($url, \Config::get('url_suffix')) and $url .= \Config::get('url_suffix');
    
  • Please report this as an issue at http://github.com/fuel/core/issues.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion