marianokit / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

URL syntax #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Make sure that the domain name entered in the config form is tolerant to
different formats.

Any valid URL should be accepted, even if it has http://, leading, trailing
slashes, rest of the path, etc.

Extract the domain name.

Original issue reported on code.google.com by zetapri...@gmail.com on 7 May 2010 at 12:32

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 25 May 2010 at 7:40

GoogleCodeExporter commented 8 years ago

Original comment by Anatoly....@gmail.com on 26 May 2010 at 6:32

GoogleCodeExporter commented 8 years ago
Please, test it on mageimage

Original comment by Anatoly....@gmail.com on 27 May 2010 at 12:19

GoogleCodeExporter commented 8 years ago
I guess changing the URL in one window and updating a preview in another should 
be
good enough to test this.

Try different variations, with slashes, http, lower case, upper case, etc.
It should be smart enough to take what looks about right to you.
In the end we are interested in "order.mydomain.com" part only. The rest is
non-consequential. 

Original comment by zetapri...@gmail.com on 27 May 2010 at 12:27

GoogleCodeExporter commented 8 years ago
Full URL:
http://magento.zetaprints.com/
Tested on:
http://www.zetaprints.com/mageimage/index.php/customized-for-testing/remax-squar
e-sign-02-1-photo-24-x-24.html

Changed to:
1. http://magento.zetaprints.com
M automatically adds / at the end of the URL after I click "Save". Template 
works fine.

2. magento.zetaprints.com
M pops up an err under the URL input field (http_required.png). Doesn't allow 
an URL
without http://. Refreshing "config" page brings back the last valid URL.

3. HTTP://MAGENTO.ZETAPRINTS.COM/
URL is accepted, template works OK.

4. HTTP://MAGENTO.zetaprints.com
URL is accepted, template works OK.

5. http://magento.zetaprints.com///
URL is automatically changed to http://magento.zetaprints.com/

6. http:///magento.zetaprints.com/ <- not accepted

Original comment by agur...@gmail.com on 28 May 2010 at 9:09

Attachments:

GoogleCodeExporter commented 8 years ago
http:// is a required part of the ZetaPrints URL. Magento does not add it
automatically and pops up an err (http_required.png).

Also, if I add one more slash after http:// -> (http:///), Magento pops up the 
same err.

Original comment by agur...@gmail.com on 28 May 2010 at 9:25

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 28 May 2010 at 10:01