Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Hyper link question
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Hyper link questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 10:53 AM
I am trying to add a link to a custom page within the customer portal. The link I am trying is like this: ../FAQSearch.aspx?entityId=Q6UJ9A000DBI - what comes out in the browser is appended with /smartparts. So if I am looking for Http://blahblah/partner_portal/FAQSearch.aspx?entityId=Q6UJ9A000DBI and what I am getting is Http://blahblah/partner_portal/smartparts/FAQSearch.aspx?entityId=Q6UJ9A000DBI . How can I work around this without hard coding the first part of the URL? Thanks
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Hyper link questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 1:41 PM
This is because you're adding the link with the path relative to the current location (which is the SmartParts dir if you're doing this on a SmartPart). You have two choices:

1) Use the "~" to indicate root of the application (meaning the root of the ASP.NET app, in this case the root of the portal). For example:
~/FAQSearch.aspx?entityId=XXXXXXXXXXXX

2) Use the absolute path from the site root. This means you'll be hard-coding the app name or virtual dir. For example:
/partner_portal/FAQSearch.aspx?entityId=XXXXXXXXXXXX

Obviously, option 1 is a better route, but wanted to mention both.

-Ryan
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Hyper link questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 2:46 PM
Thanks for the tip Ryan. I ended up kickin' it old school with an 'a href=' tag before I got your tip. This let me use "FAQSearch.aspx?entityID=xxxxx'
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 5:23:51 PM