Hello,

I don't use arguments with views. I have a view with the path "example" and a node with the path "example/content". When I delete the node, it's path points to the view and "content" is interpreted as argument. The problem is, that it results in duplicate Content in Search Engines..

Is there a way to remove the useless arguments?

Kind regards,
nocte

Comments

nocte’s picture

here's the code i added to the view's header to fix the issue:

<?php
if (preg_match("/example\/.+/", $_GET[q])) {
	header("Location: /example");
	exit;
}
?>