Help

     Forum      Videos      Knowledge Base      Hire Us      Hosting Providers     Sandbox >

 

Forum

Need a response from us? Become a VIP.
Need help with your site right now? Hire us.

Links Issue

Posted by mruggiero on March 27, 2012

I have added a dynamic region (PHP) that loads some text with links.

The hyperlink url changes after the page is populated.

Example;
link
http://domain.com/hubdb/uploads/report1.pdf
becomes
http://www.domain.com/pages/uploads/tools.pdf

Any thoughts?


Back   
 
13 Comments
Added by Camelback Web Architects
March 27, 2012

liveSite won't change the URL in Dynamic Regions unless you are adding the "path" option to the link in your code.
Added by mruggiero
March 27, 2012

Is this done in livesite or in the external php page?
Added by Camelback Web Architects
March 27, 2012

I'm not following your question. Can you elaborate?
Added by mruggiero
March 27, 2012

Where do I change the "path" option, so the URLs don't change?
Added by Camelback Web Architects
March 27, 2012

You can't change the "path" option. Just make sure you are not including that in your URL and liveSite will not do anything to change your URL in your Designer Region.
Added by joey
March 28, 2012

Mark, please check your email. I just sent a possible solution. Let me know whether you got the email or not. Thanks.
Added by dguarcz
March 28, 2012

I'm having this problem as well

If your on http://domain.com and click on MenuA tab it works because it goes to http://domain.com/MenuA

but if im on MenuB tab and click on MenuAtab then it gives me a website error because it goes to http://domain.com/pages/MenuA

why does it go to "pages/MenuA"??

Thanks
Added by joey
March 29, 2012

dguarcz,

Mark specific problem had to do with a php script I developed for him so I can not say for sure what issues you may be running into or why they are happening, however, what I can tell you is that I had to hard-code the FULL URL to his site (http://domain.com/hubdb/blahblah) to ensure all links functioned as they should.

In your case, from the looks of it, you SHOULD be able to resolve the issue by either using "/MenuA" or, as worked for Mark, use the FULL URL when creating hyperlinks.

If you'd like me to take a look at your script for you, I'd be happy to help if I can. Just let me know and we'll figure out a way for you to contact me directly. (NOTE: I am NOT affiliated with camelback or livesite. I am an independent php/mysql programmer.)
Added by Camelback Web Architects
March 30, 2012

In case this helps, you can access any page in liveSite through these "relative" path methods:

/pagename (using the Short Link feature in the Page's Properites)

And these methods, which are made possible through the .htaccess file setup when you installed liveSite:

/pages/pagename

[path]pages/pagename (replace the brackets with braces)
Added by dguarcz
March 30, 2012

Joey, How would I contact you? because this "pages/name" is annoying
Added by joey
March 30, 2012

What is your email address and I will email you...
Added by joey
March 30, 2012

Actually, just contact me at phppro~@~programmer.net
(minus the tilde (~) symbols of course)
Added by dguarcz
March 31, 2012

I sent you an email
Add Comment:
Please login or register to add a comment or get notified when a comment is added.