sedteam / Seditio

Seditio CMS Source

Home Page:https://seditio.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canonical url problem

SeditioCMS opened this issue · comments

<link rel="canonical" href="http://localhost/sednew/http://localhost/sednew/fiat-oto-yedek-parca/" />

adding double url list.inc.php

this way no problem
$out['canonical_url'] = sed_url("list", "c=".$c."&d=".$d);

page_alias problem adding double url

And Above sed_selectbox_categories is code that needs to be cleared

Screen: https://ibb.co/WK1mqgh

`/*
function sed_selectbox_categories($check, $name, $hideprivate = TRUE, $redirecturl = "", $additional="")
{
global $db_structure, $usr, $sed_cat, $L;

$onchange = (!empty($redirecturl)) ? " onchange=\"sedjs.redirect(this)\"" : ""; 

$result =  "<select name=\"$name\"".$onchange." size=\"1\">".$additional;

foreach($sed_cat as $i => $x)
	{
	$display = ($hideprivate) ? sed_auth('page', $i, 'W') : TRUE;

	if (sed_auth('page', $i, 'R') && $i!='all' && $display)
		{
		$selected = ($i==$check) ? "selected=\"selected\"" : '';
		$result .= "<option value=\"".$redirecturl.$i."\" $selected> ".$x['tpath']."</option>";
		}
	}
$result .= "</select>";
return($result);
}

*/`

commented

<link rel="canonical" href="http://localhost/sednew/http://localhost/sednew/fiat-oto-yedek-parca/" />

adding double url list.inc.php

this way no problem $out['canonical_url'] = sed_url("list", "c=".$c."&d=".$d);

page_alias problem adding double url

Hi, Kaan!
What are your settings here?
image

commented

And if so? Is the problem gone? fb8e78e

settings screen: https://prnt.sc/cy4unobjWgkG

I haven't tried yet