Ticket #1228 (new defect)

Opened 1 year ago

Last modified 1 year ago

Problem in HTML Base tag

Reported by: ebrahimi@zehneziba.ir Assigned to: jaws-bugs@lists.jaws-project.com
Priority: high Milestone: 0.9.0
Component: Other / Other bugs Version: 0.8.9
Severity: normal Keywords: HTML Base tag
Cc:

Description

Hi,

For some reason I need to move place of <base href="{BASE_URL}" /> in template file.

Before:

<head>
  <base href="{BASE_URL}" />
  <title>{site-title}</title>
  <meta name="author" content="{site-author}" />
  <meta name="keywords" content="{site-keywords}" />
  <meta name="description" content="{site-description}" />
  <meta http-equiv="content-language" content="{site-languages}" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />


  <!-- BEGIN head -->{ELEMENT}<!-- END head -->
  <base href="{BASE_URL}" />

  <link rel="stylesheet" type="text/css" href="{THEME}style{.dir}.css" media="screen" />

</head>

After :

<head>
  <title>{site-title}</title>
  <meta name="author" content="{site-author}" />
  <meta name="keywords" content="{site-keywords}" />
  <meta name="description" content="{site-description}" />
  <meta http-equiv="content-language" content="{site-languages}" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />


  <!-- BEGIN head -->{ELEMENT}<!-- END head -->
  <base href="{BASE_URL}" />

  <link rel="stylesheet" type="text/css" href="{THEME}style{.dir}.css" media="screen" />
  <base href="{BASE_URL}" />
</head>

When I made this change, all javascript codes in my page dos not run!![[BR]] Do you have any idea about this issue ?

Attachments

Change History

05/27/09 18:24:54 changed by ebrahimi@zehneziba.ir

I forget say that, this problem when occur that call an action of gadgets in Site area.

for xxample :
when browse index.php/poll/results/1.html

05/28/09 12:00:03 changed by ebrahimi@zehneziba.ir

I found that when move BASE tag to above script link, this error occur!
for example when I use below code :

<script type="text/javascript" src="gadgets/SmartMenu/smartmenus/c_smartmenus.js"></script>
<base href="{BASE_URL}" />

The browser include :http://localhost/jaws/index.php/gadgets/SmartMenu/smartmenus/c_config.js
instead of : http://localhost/jaws/gadgets/SmartMenu/smartmenus/c_config.js


Add/Change #1228 (Problem in HTML Base tag)




Change Properties
Action