Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some links in language tour contains double slash. Technically they are not broken but cause server to make 302 redirect.
http://example.com//</strong>admin/config/regional/language
I guess the [site:url] token already ends with a trailing slash.
Comment | File | Size | Author |
---|---|---|---|
#13 | patch-after.png | 104.74 KB | tresti88 |
#13 | patch-before.png | 170.57 KB | tresti88 |
#11 | core-language-corrected_links_in_language_tour-2791727-11.patch | 4.6 KB | chishah92 |
#6 | core-language-corrected_links_in_language_tour-2791727-6.patch | 3.27 KB | bhide.nishad |
Comments
Comment #2
Chi CreditAttribution: Chi commentedComment #3
poornima.n CreditAttribution: poornima.n at gai Technologies Pvt Ltd commentedCan you please upload the screen shot
Comment #4
Chi CreditAttribution: Chi commented@poornima.n what screenshot?
Comment #5
bhide.nishad CreditAttribution: bhide.nishad at Clarion Technologies commentedComment #6
bhide.nishad CreditAttribution: bhide.nishad at Clarion Technologies commented@Chi ! you were correct, [site:url] token already ends with a trailing slash.
Corrected the URLs, please find the attached patch.
Thanks,
Nishad
Comment #8
Chi CreditAttribution: Chi commentedLooks good for me. Thanks.
Comment #9
alexpottAt first I wondered if the behaviour of the site:url token had changed in Drupal 8 compared to 7. It has not:
So the change looks correct..
The original version reads nicer - but the new version is definitely correct. However there are more tours to fix - we should fix all the tours in core. Given this is a configuration change we also should consider an upgrade path. However, given that the links work and just cause a 302 I think we shouldn't bother with that.
Comment #10
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedComment #11
chishah92 CreditAttribution: chishah92 at Blisstering Solutions commentedHave corrected in all tours in the core with this new patch.
Thanks
~Chirag
Comment #12
bhide.nishad CreditAttribution: bhide.nishad at Clarion Technologies commentedAs per the previous finding there were only issue in language and local module.
So this issue was considered for language module.
For local module, another issue https://www.drupal.org/node/2797663 was logged.
Thanks,
Nishad
Comment #13
tresti88Hi,
Tested this patch in 8.2 dev see attached screen shot before the patch was applied and after. All is good.
Comment #14
tresti88Comment #15
alexpott"[site:url]/" not found in the code anymore. Looks good - updating issue credits.
Comment #16
alexpottCommitted 554852c and pushed to 8.3.x. Thanks!
Leaving to be cherry-picked into 8.2.x once 8.2.0 is released.
Comment #18
LiamPower CreditAttribution: LiamPower at Reading Room commentedPatch #11 works and still applies cleanly for 8.2.
I had been looking at this as part of the Mentored sprints at DC Dublin 2016
Comment #19
AdamB CreditAttribution: AdamB at Reading Room commentedBeen looking at this as part of the Mentored Sprints at DrupalCon Dublin 2016.
Agree Patch #11 applies cleanly for 8.2.
Comment #20
alexpottCommitted 52ecc26 and pushed to 8.2.x. Thanks!