We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 8041 - own Navbar Menu items in about/sitemap incorrect
own Navbar Menu items in about/sitemap incorrect
Status: RESOLVED FIXED
Product: OJS
Classification: Unclassified
Component: Open Journal Systems
2.4.2
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-25 22:25 PST by kreissaege
Modified: 2013-01-04 17:00 PST (History)
1 user (show)

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kreissaege 2012-11-25 22:25:38 PST
The siteMap.tpl create an incorrect link for own Navbar Items, created in Setup Step 5.5.

The source code in siteMap.tpl (line 70):

{if $navItem.url != '' && $navItem.name != ''}<li><a href="{if $navItem.isAbsolute}{$navItem.url|escape}{else}{url page=""}{$navItem.url|escape}{/if}">{if $navItem.isLiteral}{$navItem.name|escape}{else}{translate key=$navItem.name|escape}{/if}</a></li>{/if}

create for relative menu items links like
/pathtojournal/about/siteMap/pages/view/ownStaticPage

but should be
/pathtojournal/pages/view/ownStaticPage

(OJS v. 2.3.8)

Katrin
Comment 1 Alec Smecher 2013-01-04 16:57:32 PST
Corrected to use {$baseUrl} instead of {url page=""}.
Comment 2 Alec Smecher 2013-01-04 17:00:04 PST
Fixed relative URL custom nav items
https://github.com/pkp/ojs/commit/e5945466007d3a33c68003106a81592d8f3c1659
Comment 3 Alec Smecher 2013-01-04 17:00:04 PST
Fixed relative URL custom nav items
https://github.com/pkp/ojs/commit/47874692500bffa2920f4ac1c5b1e547448a5232