? ? Success

User tests: Successful: Unsuccessful:

avatar Devportobello
Devportobello
2 Mar 2016

This PR add the ability to set "rel" attribute of a link when you setup a menu item type of external url.
SEO purpose.

Testing Instructions

Before patch

Create a menu item type of "External url", go to tab "Link type", there is no way to setup an rel attribute.

After patch
  • Create a menu item type of "External url", add title, link (eg: https://www.google.fr/) then go to tab "Link type", there is a field "Link Rel Attribute" to setup (eg: Nofollow);
  • Save.
  • Go to frontend, look at html rendered by a module menu (eg: ul > li > a)

this should seem like this:

<a href="https://www.google.fr/" rel="nofollow">My external url</a>

Try switching different rel value, for "None" there is no rel attribute:

<a href="https://www.google.fr/">My external url</a>

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar Devportobello Devportobello - open - 2 Mar 2016
avatar Devportobello Devportobello - change - 2 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2016
Labels Added: ? ?
avatar 1apweb 1apweb - test_item - 2 Mar 2016 - Tested unsuccessfully
avatar 1apweb 1apweb - test_item - 2 Mar 2016 - Tested successfully
avatar 1apweb
1apweb - comment - 2 Mar 2016

I have tested this item :white_check_mark: successfully on 3d35139


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

avatar shubhamnba2009
shubhamnba2009 - comment - 2 Mar 2016

I have tested this item :white_check_mark: successfully on 3d35139
After applying this patch I tested with every Link attribute(None,Alternate,Author,bookmark,etc) and they were applied succesfully on frontend.

avatar grhcj
grhcj - comment - 2 Mar 2016

@shubhamnba2009 Please mark your test result as described in https://docs.joomla.org/Testing_Joomla!_patches.

avatar shubhamnba2009 shubhamnba2009 - test_item - 2 Mar 2016 - Tested successfully
avatar shubhamnba2009
shubhamnba2009 - comment - 2 Mar 2016

I have tested this item :white_check_mark: successfully on 3d35139

After applying this patch I tested with every Link attribute(None,Alternate,Author,bookmark,etc) and they were applied succesfully on frontend.


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

avatar andrepereiradasilva andrepereiradasilva - test_item - 2 Mar 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Mar 2016

I have tested this item :white_check_mark: successfully on 3d35139

works as described.


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

avatar infograf768 infograf768 - change - 3 Mar 2016
Status Pending Ready to Commit
avatar infograf768 infograf768 - change - 3 Mar 2016
Category Front End
avatar infograf768
infograf768 - comment - 3 Mar 2016

RTC. Thanks.


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

avatar joomla-cms-bot joomla-cms-bot - change - 3 Mar 2016
Labels Added: ?
avatar muhakh muhakh - test_item - 3 Mar 2016 - Tested successfully
avatar muhakh
muhakh - comment - 3 Mar 2016

I have tested this item :white_check_mark: successfully on 3d35139

This patch fixes the issue.


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

avatar wilsonge wilsonge - change - 3 Mar 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-03-03 20:13:37
Closed_By wilsonge
avatar wilsonge wilsonge - reference | f07003c - 3 Mar 16
avatar wilsonge wilsonge - merge - 3 Mar 2016
avatar wilsonge wilsonge - close - 3 Mar 2016
avatar Devportobello Devportobello - head_ref_deleted - 4 Mar 2016
avatar infograf768
infograf768 - comment - 4 Mar 2016

I should not have RTC this...
The values are enough as these are html code and should not be translated:
I.e.

<option value="">JNONE</option>
+            <option value="alternate">COM_MENUS_FIELD_VALUE_ALTERNATE</option>
+            <option value="author">COM_MENUS_FIELD_VALUE_AUTHOR</option>
+            <option value="bookmark">COM_MENUS_FIELD_VALUE_BOOKMARK</option>
+            <option value="help">COM_MENUS_FIELD_VALUE_HELP</option>
+            <option value="license">COM_MENUS_FIELD_VALUE_LICENSE</option>
+            <option value="next">COM_MENUS_FIELD_VALUE_NEXT</option>
+            <option value="nofollow">COM_MENUS_FIELD_VALUE_NOFOLLOW</option>
+            <option value="noreferrer">COM_MENUS_FIELD_VALUE_NOREFERRER</option>
+            <option value="prefetch">COM_MENUS_FIELD_VALUE_PREFETCH</option>
+            <option value="prev">COM_MENUS_FIELD_VALUE_PREV</option>
+            <option value="search">COM_MENUS_FIELD_VALUE_SEARCH</option>
+            <option value="tag">COM_MENUS_FIELD_VALUE_TAG</option>

should have been

+           <option value="">JNONE</option>
+           <option value="alternate">alternate</option>
+           <option value="author">author</option>
+           <option value="bookmark">bookmark</option>
+           <option value="help">help</option>
+           <option value="license">license</option>
+           <option value="next">next</option>
+           <option value="nofollow">nofollow</option>
+           <option value="noreferrer">noreferrer</option>
+           <option value="prefetch">prefetch</option>
+           <option value="prev">prev</option>
+           <option value="search">search</option>
+           <option value="tag">tag</option>
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2016
Labels Removed: ?
avatar Bakual
Bakual - comment - 4 Mar 2016

You could even just use

<option value="">JNONE</option>
<option value="alternate"/>
<option value="author"/>
<option value="bookmark"/>
<option value="help"/>
<option value="license"/>
<option value="next"/>
<option value="nofollow"/>
<option value="noreferrer"/>
<option value="prefetch"/>
<option value="prev"/>
<option value="search"/>
<option value="tag"/>
avatar infograf768
infograf768 - comment - 4 Mar 2016

Shall we change this before RC? (Language freeze now)

avatar Bakual
Bakual - comment - 4 Mar 2016

I think removing them would make sense. And since you already told the translators to not translate them we could still remove them I think.

avatar Devportobello
Devportobello - comment - 4 Mar 2016

Did i need to patch this here?

avatar brianteeman
brianteeman - comment - 4 Mar 2016

No this has been merged it should be a new PR

avatar Devportobello
Devportobello - comment - 4 Mar 2016

ok, got issue with my fork, i got on local and origin "Merge remote-tracking branch 'upstream/master'" ... unable to do a PR actually against staging.

avatar Bakual
Bakual - comment - 4 Mar 2016

See: #9300

Add a Comment

Login with GitHub to post a comment