Closed (outdated)
Project:
Drupal core
Version:
8.9.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Aug 2008 at 16:10 UTC
Updated:
15 May 2021 at 07:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
arhak commentedplease read HOWTO: Make A GOOD issue report
Comment #2
mikey_p commentedI tried to write a test for this and in the process wrote a function that should fail in verifyExternalMenuItem, but is not failing, so not sure what is up with assertTtitle().
Comment #3
dave reidIf you're going to verify external sites, you should not be checking title (can be volatile), but rather, check $this->getUrl() == the menu path.
Comment #4
mikey_p commentedNow checks URL and title, also checks adding a full url but without the protocol (http://) in addInvalidMenuItem()
Comment #6
mikey_p commentedMan I am not having luck with the testing bot lately. I can't recreate any failures here on a clean checkout of HEAD.
This may be dependent on http://drupal.org/node/345632.
Comment #7
mikey_p commentedPlease re-test as #345632: SimpleTest: correct assertTitle logic is in now.
Comment #9
marcingy commentedBumping to head
Comment #10
marcingy commentedAdding tag
Comment #11
aspilicious commentedThis isn't fixed yet and the menu tests are different now...
Comment #12
aspilicious commentedAnd here is an updated patch
Comment #13
aspilicious commentedSmall typo
Comment #14
tim.plunkettAssertion messages shouldn't use t().
As far as using external URLs, I'd like to think example.org, iana.org, and drupal.org are safe. But I'm not sure.
Comment #15
chx commentedI would rather see us testing that we landed on example.com and not follow the redirect. Much to my surprise this is not possible currently so I have filed #1668748: Impossible to test for redirects
Comment #24
quietone commentedTesting of an external link was added in Drupal 8.0.x in #2257229: Cannot add external url or <front> as menu item.
I do believe this is now outdated.