User tests: Successful: Unsuccessful:
Suppose you have a Joomla website that is reachable via different domain names or via HTTP and HTTPS. If you want to use the links A/B/C in your articles (I assume that your template knows what to do with these, which is the case e.g. with the Protostar template) you currently have to decide which of your domain names you want to use resp. whether you want to use HTTP or HTTPS as protocol if you want to assign links to other pages within your website to the links A/B/C.
This PR proposes changes which allow to assign internal links to the links A/B/C.
About testing these changes:
For testing I used the fruit shop welcome page from the example installation but any other pages should work as well. I added links to the "Apples", "Bananas" and "Tamarind" pages to the "Welcome" page of the fruit shop.
What should work with these changes (and what not) - examples based upon the fruit shop pages:
I know that there are other components in Joomla which also allow to enter URLs, e.g. the contact manager. It is probably also in those components of interest to allow internal URLs beside the external URLs currently only allowed there. If you enter a relative URL (means: URL without protocol etc.) the library routines do their best to convert this URL into an external URL (see libraries/joomla/form/form.php for details) but by principle it cannot work well always though I found an error in this part and corrected it as part of my changes.
If you now have a sort of deja-vu this is no wonder! The above PR description is nearly identical to PR #4309 since it covers the same topic but for the Joomla 2.5.x branch. There are some differences though which are caused by the punycode support introduced with Joomla 3 and the support of some HTML 5 attributes, especially the type="url" attribute for input fields.
Labels |
Added:
?
|
Labels |
Added:
?
|
@infograf768 I removed the superfluous brace at line 82 in url.php (the web interface added this brace automatically when I entered the code before this line - presumably it was set when I opened the brace at line 75).
Can you give me some examples regarding code style issues? When I made my changes in these files I tried to mimic the code style of these files, especially around the lines I added or changed.
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
FILE: /home/travis/build/joomla/joomla-cms/libraries/joomla/form/form.php
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
1318 | ERROR | Please consider the /* */ style for comments that span over
| | multiple lines.
Launched Travis again
Please read:
regarding code style
I changed the comment in the file form.php according to the code style and I hope that Travis won't complain any longer about it.
Travis OK now. Patch works for me. One more tester.
Category | ⇒ | Administration Components Front End Language & Strings Libraries |
This has been merged into 3.4.dev. Closing
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-09-27 06:35:06 |
Travis fails. I see one closing brace too much (among other code style issues ) in url.php around line 82