Link to a visualforce page not working

Hello, 

I created a link to a visualforce page by inserting it as a redirect to following url /apex/SchedeChiamate

It work for community users but didn’t work for Saleforce users. I try also apex/SchedeChiamate and {{$Site.CurrentSiteUrl}}/apex/SchedeChiamate}} but didn’t work.


Andrea,

/apex/SchedeChiamate should work. What happens when they try to redirect to the page? Do they see an error message or is the page blank or something else? Are the Salesforce users redirecting while in Salesforce Classic or Lightning? You’ve probably already thought of this, but you might want to double check that your Salesforce users have access to the SchedeChiamate Visualforce page.

I am having the same problem. My VF page (name is AFLSkuid_InventoryPublish) looks like this:

<apex:page controller=“skuid.Redirects” action=“{!redirect}&page=InventoryPLM”/>

my URL redirect is this:
/apex/c__AFLSkuid_InventoryPublish

I get a visualforce error that says “The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores.”

The URL that it redirects to is:
https://afl–skuid.na7.visual.force.com/apex/UI&page=InventoryPLM

Usually the URL would look like this:
https://afl–skuid.na7.visual.force.com/apex/skuid__ui?page=InventoryPLM

(notice the ‘UI&’ changed to ‘skuid__ui?’)

How can I get my VF page to produce the correct url? I am not doing a skuid page assignment. I just want a button with a url to my visualforce page, which will point to a skuid page. I am doing this method because only a handful of users are allowed to access this page and we are controlling it by permission set. With a permission set, I can control access to the Visualforce page (unauthorized users will get an error.) Preferred method would be to render the button based on the permission set, but we can’t do that. :slight_smile: (thanks Salesforce…)

Chandra,

Showing my lack of knowledge here, but is there a specific reason why you need c__ before the Visualforce page name when you redirect? Have you tried redirecting to /apex/AFLSkuid_InventoryPublish ? You might also try using the Skuid:page component in Visualforce to redirect, instead of just redirecting through an action

Amy - the c__ is the relative link… see Rob’s comment in this thread.

https://community.skuid.com/t/url-redirect-to-open-visualforce-page-from-skuid/3821

Anyway, I changed my VF to the Skuid:page component method and now it works.

Thanks!

1 Like