Skip to content

[SEO] - Deleted tags not redirecting to 404 error page#8040

Closed
fancyFranci wants to merge 7 commits intojoomla:stagingfrom
fancyFranci:staging
Closed

[SEO] - Deleted tags not redirecting to 404 error page#8040
fancyFranci wants to merge 7 commits intojoomla:stagingfrom
fancyFranci:staging

Conversation

@fancyFranci
Copy link
Copy Markdown
Contributor

A Solution for issue #5148

The issue:
When an url of an unknown tag is requested, joomla handles this like an existing tag with the message "No matching items were found.". A 404 error should be thrown instead.

My solution:
When the tag ID (out of the given url) is searched in the database, I check the primary key of the "found" object. When there is no one, I throw the 404 error, with a "Tag not found." message.

Testing instructions:

  • Enter an url with a tag that does not exist in your joomla.
  • Important is the ID and not the name behind the minus.
  • For example: localhost/example-page/index.php/all-tags/99-foo

Expected result:
A 404 error appears instead of a "No matching items were found." message.

Worked as a group on that issue: @icampus @Flow87 @kathastaden @xsability

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-staging labels Oct 9, 2015
@brianteeman
Copy link
Copy Markdown
Contributor

Language strings are normally ordered alphabetically so please can you update the proposed change in the language file

@fancyFranci
Copy link
Copy Markdown
Contributor Author

Thank you for your comment!
I will check my git problems (with the unnecessary commit) and sort the language file.

@snarf007
Copy link
Copy Markdown

I have tested this item ✅ successfully on ec507fc

Before istalling the patch recieved the following message: No matching items were found.
After installing the patch: No matching items were found. (404 Tag not found. )

Result as expected


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@dam-man
Copy link
Copy Markdown
Contributor

dam-man commented Oct 10, 2015

I have tested this item ✅ successfully on ec507fc

404 is better to show indeed - Patch is working as expected and throwing a 404 now instead of a message.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Oct 10, 2015

RTC is on hold until @FPerisa gets time to fix the language string ordering ;) Thanks.

@zero-24 zero-24 added this to the Joomla! 3.4.5 milestone Oct 10, 2015
@roland-d
Copy link
Copy Markdown
Contributor

@FPerisa Can you please fix the language ordering so we can merge this fix? Thank you.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@frascan
Copy link
Copy Markdown

frascan commented Oct 24, 2015

I have tested this item successfully; with result as expected.
Test took place in the context of Pizza & Fun Bug JUG Rome.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@ZioPal
Copy link
Copy Markdown

ZioPal commented Oct 24, 2015

I successfully tested, I think is a sensible change. The test took place in the Pizza and Fun JUG Rome.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@dgrammatiko
Copy link
Copy Markdown
Contributor

@FPerisa can you please merge https://github.com/FPerisa/joomla-cms/pull/1 to move this to RTC?

@dgrammatiko
Copy link
Copy Markdown
Contributor

RTC since the language strings are now alpha ordered


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8040.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Oct 27, 2015
@zero-24 zero-24 modified the milestones: Joomla! 3.4.6, Joomla! 3.5.0 Oct 28, 2015
@roland-d roland-d closed this in ec14c41 Nov 2, 2015
@wilsonge wilsonge removed the RTC This Pull Request is Ready To Commit label Jan 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.