- Posts: 58
COMMUNITY FORUM
Remove alias from url
- Emmanouil
-
Topic Author
- Offline
- Senior Member
Less
More
14 years 8 months ago #88741
by Emmanouil
Remove alias from url was created by Emmanouil
Hello!All i want to do is to remove the item alias from the url..For example if i have this url:/index.php?option=com_k2&view=item&id=529:k2-is-a-great-comp&Itemid=243and i want this instead/index.php?option=com_k2&view=item&id=529&Itemid=243which file may i tweak to remove it?Thanks in advance!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
14 years 8 months ago #88742
by Yiota
Replied by Yiota on topic Remove alias from url
I'm afraid you will have to modify joomla core files to do what you want.
Please Log in or Create an account to join the conversation.
- Emmanouil
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
14 years 8 months ago #88743
by Emmanouil
Replied by Emmanouil on topic Remove alias from url
Joomla core files or K2 core files?Thats the question!Thanks for your time anyway!
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
14 years 8 months ago #88744
by Yiota
Replied by Yiota on topic Remove alias from url
This has definitely to do with joomla and the way it generates the urls of every menu item.
Please Log in or Create an account to join the conversation.
- Emmanouil
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
14 years 8 months ago #88745
by Emmanouil
Replied by Emmanouil on topic Remove alias from url
I think that this the point where K2 generates the url
k2/components/com_k2/helpers/route.php
function getItemRoute($id, $catid = 0) {
$needles = array (
'item'=>(int)$id,
'itemlist'=>(int)$catid,
);
$link = 'index.php?option=com_k2&view=item&id='.$id;
if ($item = K2HelperRoute::_findItem($needles)) {
$link .= '&Itemid='.$item->id;
}
return $link;
}
but i dont see the $alias tag....
I dont think that is have to do with joomla core cause K2 replaces the com_content of joomla...
k2/components/com_k2/helpers/route.php
function getItemRoute($id, $catid = 0) {
$needles = array (
'item'=>(int)$id,
'itemlist'=>(int)$catid,
);
$link = 'index.php?option=com_k2&view=item&id='.$id;
if ($item = K2HelperRoute::_findItem($needles)) {
$link .= '&Itemid='.$item->id;
}
return $link;
}
but i dont see the $alias tag....
I dont think that is have to do with joomla core cause K2 replaces the com_content of joomla...
Please Log in or Create an account to join the conversation.