Closed Jimmi08 closed 6 months ago
Documentation needs to be updated (https://devguide.e107.org/classes-and-methods/urls#example-2-using-optional-parameters) but you can use e107::url()
, and then use the fourth parameter ($options
) which is an array.
For example:
$forum_url = e107::url("forum", "topic", $forum_data, array("mode" => "full"));
Background information:
array('full' => 1)
is applicable when usinge107::getUrl()->create()
which I don't recommend at this point, unless you know what you are doing. It is used for some core routes, for example:
e107::getUrl()->create('news/view/item', $row, array('full' => 1));
Question
I need to get the full url for some link.
I used the option
"full"=>1
orfull=1
. It works in all plugin places except e_rss.php. Here has to be:"mode"=>"full"
used.So what is correct? "mode"=>"full" is only for RSS plugin?
Thanks
Expected Source
in forum plugin, e107_class and rss.php files. ,
Additional Context
The reason why it has to in full mode:
in rss.php (it must start with HTTP) otherwise weird URL is used.