Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [urlrewriter]

A URL rewriter is an Apex Class that inherits the rewriter interface and allows a developer to map site URLs to other URLS, for example you can map `/SomeArticle` to a VisualForce page that takes a specific ID, such as `/apex/ArticleViewer?Id=xyz`, and `/SomeOtherArticle` to `/apex/ArticlesViewer?Id=abc`.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

When I have a pageReference that returns null, I lose my friendly url from urlRewriter

When my controller returns null in a pageReference method, I lose my friendlyURL. URLReWriter: global without sharing class URLRewriter implements Site.UrlRewriter { global PageReference ...
2
votes
1answer
577 views

sfdcIFrameOrigin parameter being added to Site url unnecessarily when using mobile

I have a Visualforce Page which is hosted on a Salesforce site. I am using a URL rewriter to make the URL into a friendly one. The page has a few parameters being passed into it (3 to be exact) and ...
2
votes
1answer
117 views

View override fails when URL Rewriter is implemented

Problem: Using a URL Rewriter class causes failure of a View override page Background: We have a community portal with a custom Visualforce application. We have overridden the View action on Case ...
-1
votes
1answer
955 views

How to change the URL of a Visualforce page

I need to modify the URL of a visualforce page so that it is represented with the record name instead of the record ID. The VF page would just hold the apex:detail tag and use a standard controller ...
0
votes
1answer
233 views

Handling 'URL Does not exist' page

We are using angular for front-end and Salesforce is being used for maintaining database. REST APIs have been written on Salesforce to communicate and fetch data to front-end. We have created Site/...
3
votes
1answer
145 views

User context is always guest user in Site Url Rewriter class

We have a customer community with a custom Visualforce application and a custom login page, so that when you are logged into community you are always in the VF app. I have created a Url Rewriter ...
0
votes
0answers
106 views

URL redirection to a specific Profile Users

We are using angular for front-end and Salesforce is being used for maintaining database. REST APIs have been written on Salesforce to communicate and fetch data to front-end. We have created Site/...
2
votes
0answers
68 views

How to only show the friendly URL on a force.com site?

On a force.com site, how do I force the URL Rewriter to always display the friendly URL (eg: /profile/johndoe) instead of the VisualForce Page (eg: /Profile?id=xxxx)? Calling the URLFOR function in ...
1
vote
0answers
199 views

force.com sites URL rewriter issue with URL parameter getting changed

i recently started on a project which uses Force.com sites and site has implemented URL Rewriter class, i was debugging an issue where URL parameter passed from one site page to another was getting ...
0
votes
1answer
424 views

Is it possible to URL rewrite the VF page itself on Force.com Sites?

Currently I am able to rewrite the link to mask the SFDC ID (not meant to be a real links) : https://devenv.cs3.force.com/site/Unregistered?id=00XR12134152 to https://devenv.cs3.force.com/site/...
5
votes
1answer
282 views

URL rewrite class not being called when http staus code is in URL

We have a Salesforce Site set up and a URL rewriting class that takes the URL and transforms it to add parameters. This should be pretty straight forward. e.g. a user goes to http://siteurl.com/...
2
votes
0answers
104 views

Viewstate Not Saved on Force.com Site with URL Rewriter Class

Does anyone have any experience with the viewstate being lost when using a URL Rewrite class on a Force.com site? A brief overview of my org's use case to explain why this matters. We have 8-9 Force....
0
votes
0answers
35 views

How i can hide the user name parameter in url [duplicate]

In registration form once entered user name and password it will redirect to user profile page. How i can hide that particular username parameter in that url
0
votes
2answers
225 views

Re-routing to Static Resources with Site's UrlRewriter resulting in 404

Our public website has some links to downloadable PDFs. We'd like to use "pretty" URLs, but for some reason we're getting a 404 error when using the Site's UrlRewriter. The resource itself is ...
2
votes
2answers
147 views

GenerateUrlfor method invocation in Url Rewriter causing too many SOQL Exception

I am using url rewriter to convert all salesforce urls in a page to friendly url. the generate url method invokes many times(number of urls in the page) Is this how this method invoked, I thought it ...
1
vote
3answers
3k views

URL masking force.com-sites/sites.com

We have a app in place that uses sites.com these are the URL's that we are using http://myAppURL.force.com/login http://myAppURL.force.com/logout http://myAppURL.force.com/refresh http://myAppURL....
3
votes
1answer
200 views

URL rewriter in JavaScript

I am building something that I want to work something like Google Maps. As your state changes, the URL in the address bar changes. You can later on copy & paste this URL and come back to it. I am ...
1
vote
1answer
107 views

Problems with Urlrewriter - what actually comes int through customerPortalUrl

I was having a lot of problems with the UrlRewriter not working so I simplified it so it actually does nothing to see if I could get that to work, but it still fails to correctly load the pages. I ...
3
votes
1answer
256 views

Site.UrlRewriter and Wildcards

I'm attempting to use Angular Routing to handle all of my public facing pages. It creates a pretty smooth experience for the customers, and I have gotten it working on my development machine, but now, ...
1
vote
0answers
686 views

Rewrite sfc/servlet.shepherd/version/download images path to real image name

I have links to Salesforce Content images which I'm using inside visualforce pages inside a Site, the links have the following path: sfc/servlet.shepherd/version/download/Image_Id. I want it to be ...
2
votes
1answer
673 views

Why is my Site.UrlRewriter implementation not affecting URLFOR()

I have a Visualforce Page running on a Force.com Site that looks like this: <apex:page standardController="Page__c" extensions="RootTemplateExtension"> {!URLFOR($Page.Master, null, ["id"="...
2
votes
0answers
219 views

Stop Salesforce removing https:// from start of web service url

I have set up an apex web service that receives an http get request from an external system with a querystring appended. Salesforce requires the web service endpoint to use HTTPS, which is fine, but ...
1
vote
0answers
391 views

Issue with URL rewrite when having 2 or more parameters

I'm facing an issue with my site where URL rewrite is not working using URLFOR() for 2 or more parameters. As per an answer on Stack Overflow this is an existing issue. Site.UrlRewriter Interface ...
7
votes
1answer
931 views

URL rewriting for static resources

I know you can serve static HTML by uploading it as a static resource, but is it possible to create a URL rewrite rule for a static resource? Something like this if (url.startsWith('/coach')){ ...
3
votes
1answer
382 views

URL Rewriting the Chatter Feed

I was going through the notes about URL Rewriting for a Visualforce based Community, and noticed that while my custom Visualforce Pages mapped correctly, the chatter feed component does not seem to ...
5
votes
2answers
331 views

Visualforce Caching With URL Rewriter

I have a URL rewriter running on sites which essentially maps pretty URLs to a single Visualforce page which takes a standard ID parameter. If I enable caching for the page with cache='true' in the ...
9
votes
1answer
847 views

Site.UrlRewriter Interface implementation problem with more than 2 parameters

Sites provides built-in logic that helps you display user-friendly URLs and links to site visitors. For that we need to implement Site.UrlRewriter interface and create our own class to map user-...
3
votes
2answers
3k views

serverurl and visualforce

How do I get the server URL from a visual force page? I am using conga and when I invoke from a button the code it passes the server URL as: ServerUrl=https%3A%2F%2F***cs9.salesforce.com***%...
4
votes
2answers
1k views

generateURLfor method in urlrewriter? how will it be invoked?

I was trying to implement the urlrewriter as mentioned in the below url http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_site_urlRewriter.htm want to know how this generateURLfor ...