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
7 votes
0 answers
738 views

What is a strategy for SEO since URL Rewriting in Lightning Community is not possible?

The Salesforce Documentation states that URL Rewriting is not supported in Lightning Communities: Is URL rewriting for creating custom vanity URLs supported? No, URL rewriting isn’t supported ...
Peter Knolle's user avatar
  • 29.1k
0 votes
1 answer
257 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 ...
Nikilesh Kopparthi's user avatar
3 votes
1 answer
2k 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 ...
ToskaMan's user avatar
2 votes
1 answer
298 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 ...
David Cheng's user avatar
  • 7,085
-1 votes
1 answer
3k 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 ...
Sheldon John's user avatar
0 votes
1 answer
909 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/...
Salesforce Learner's user avatar
3 votes
1 answer
390 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 ...
David Cheng's user avatar
  • 7,085
0 votes
0 answers
476 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/...
Salesforce Learner's user avatar
2 votes
0 answers
117 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 ...
Julio's user avatar
  • 165
1 vote
0 answers
351 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 ...
Walker's user avatar
  • 2,333
0 votes
1 answer
1k 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/...
compski's user avatar
  • 1,352
6 votes
1 answer
628 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/...
Nick C's user avatar
  • 6,585
2 votes
0 answers
118 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....
Chris Kohli's user avatar
0 votes
0 answers
38 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
mahesh's user avatar
  • 171
0 votes
2 answers
472 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 ...
JDB's user avatar
  • 670
2 votes
2 answers
190 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 ...
Varghese Kiran's user avatar
1 vote
3 answers
6k 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....
Piyush Singhal's user avatar
3 votes
1 answer
243 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 ...
dzh's user avatar
  • 4,106
1 vote
1 answer
126 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 ...
Lindsey B's user avatar
  • 111
3 votes
1 answer
410 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, ...
Justin R. Donaruma's user avatar
1 vote
0 answers
821 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 ...
GoldenAxe's user avatar
  • 477
2 votes
1 answer
763 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"="...
Matt and Neil's user avatar
2 votes
0 answers
282 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 ...
Adam 's user avatar
  • 1,426
1 vote
0 answers
419 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 ...
nkvp's user avatar
  • 111
7 votes
1 answer
1k 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')){ ...
Keith Mancuso's user avatar
3 votes
1 answer
433 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 ...
Michael Welburn's user avatar
5 votes
2 answers
374 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 ...
Matt Lacey's user avatar
  • 25.6k
9 votes
1 answer
1k 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-...
TonyTuan's user avatar
3 votes
2 answers
4k 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***%...
Rao's user avatar
  • 16.7k
4 votes
2 answers
2k 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 ...
Sathya's user avatar
  • 3,202