开发者

I want to use the question mark in the auto-generated path aliases

I want to use the question mark t开发者_开发问答he automatically generated path aliases, but when I write the question mark, it is changed to %3f.

How can I fix this?


The URL you are trying to use appears to be used as a proper delimiter of path vs. query string. You should not attempt to add the question mark yourself, but instead implement the section after the question mark as query string. For example:

l(t('My Link'), 'campaign/resurfacing-seminar', array(
  'query' => array(
    'campid' => '70150000000Tbdk',
    'eloqua' => 'SEM-110604-SyracuseNY-Lowe',
  ),
));


Drupal's url() function is better if you are incorporating it in a form action or a drupal_goto() function.

Here is the link to the function explanation: http://api.drupal.org/api/drupal/includes--common.inc/function/url/6


You really can't if you want things to work correctly. The "?" is a special character that signifies the end of the URI and the beginning of the query string. Doing what you suggest would break a lot of your other drupal pages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜