PHP - Joomla 3.4.1 redirect for urls that contain missing categories -


i using redirect plugin included joomla 3.5. works regular urls when there older 'missing category' url fails.

short of adding own rewrite rule there php code fix in index.php?

this happening. unlike usual behavior of no longer existing page, page hitting this:

if ($category == false) {     return jerror::raiseerror(404, jtext::_('jglobal_category_not_found')); }  if ($parent == false) {     return jerror::raiseerror(404, jtext::_('jglobal_category_not_found')); } 

which hard coded 404 found in /libraries/legacy/view/category/.

this because of weird aspect of api though says com_content doesn't check article first, checks category first. think it's bug in support of long deprecated url structures , should fixed encourage migration, that's me, question can do.

so want think intercept before happens , allow normal operation of plugin. how approach depends on how many of urls structure expect have support. if couple, hard code. if lot plugin in stack , have update request url want modifying jinput object. possibly copying , adding redirect plugin or making own separate system plugin. haven't looked closely enough @ redirect plugin in recent years know if can modify error handling there place start.

for more on plugins try [joomla.se].


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -