Absolute and relative URLs

2 weeks 5 days ago - 2 weeks 5 days ago #1 by Stéphan
Absolute and relative URLs was created by Stéphan
Hi CHristopher,
I have opened one of your template just to see how they're done.
For the image, i can see that you used relative URLs (i.e. : administrator/components/com_nspro/uploads/newsletters/logo-blue.png).
For link, I can see that you used Absolute URLs (i.e. : https://demo.mavrosxristoforos.com/administrator/components/com_nspro/help.html#setting_forms)
I'm working on a template on my local server (MAMP). I would like to know if I can use only relative URLs for image and links. So when I'm going to migrate to my production website, everythings will work great. Is that a good practice ? Thanks in advance for your advice...

Please Log in or Create an account to join the conversation.

2 weeks 3 days ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Absolute and relative URLs
Hello Stéphan and thank you for posting.

You can use relative links, as long as you make sure they work when you move to production.
NS Pro will try to make all URLs absolute, since relative URLs don't work in emails, neither in images nor in links.

Let me know if you face any difficulties.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!
The following user(s) said Thank You: Stéphan

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros