Link to a visualforce page not working


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.


/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:

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:

Usually the URL would look like this:

(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…)


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.

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