Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Issue with category URLs when using exp:channel:categories

Status Resolved
Add-on / Version Publisher 1.6.5
Severity
EE Version 2.10.1

Jason McCallister

Aug 11, 2015

Description:

When viewing the english (non-translated) version of a category URL , using the path tag, I’m seeing some issues between both versions of the site. The category URL is correct (and appends `category`) to the URL. For example `/en/blog/category/category-name`.

However, when viewing the translated version (in this case Spanish) the `category` segment is missing in action (i.e `/es/acerca-de-inb/blog`). See the below code for an example.

{exp:channel:categories channel="blog" style="linear" show_empty="yes"}

<li{if freebie_4 == category_url_title} class="active"{/if}><a href="{path=">{category_name}</a></li>

{/exp:channel:categories}

I’m going to pst URL’s for both in a private message.

#1

BoldMinded (Brian)

It looks like your href value is wrong? {path= is incomplete.

#2

Jason McCallister

Its correct in the code, its about/blog it just got caught by the code block.

#3

Jason McCallister

Also, the path is wrapped in “” I tried to wrap it in ” but that doesn’t work either. The translated version does not show the category in the URL still.

#4

Jason McCallister

Comment has been marked private.

#5

BoldMinded (Brian)

I’m unable to replicate this behavior, the segments are translating and include the translated category url indicator (which by the way, did you enter this value in the language setting page?)

#6

BoldMinded (Brian)

Comment has been marked private.

#7

BoldMinded (Brian)

Closing this ticket, been almost a month with no response.

Login to reply