Title: salesforce proxy url is not correct if the browser url is formed differently by sso · Issue #95 · developerforce/Force.com-JavaScript-REST-Toolkit · GitHub
Open Graph Title: salesforce proxy url is not correct if the browser url is formed differently by sso · Issue #95 · developerforce/Force.com-JavaScript-REST-Toolkit
X Title: salesforce proxy url is not correct if the browser url is formed differently by sso · Issue #95 · developerforce/Force.com-JavaScript-REST-Toolkit
Description: Salesforce proxy url is looking at element[0] or element[1] of url split by dot in order to get domain. which is not always correct. I think domain should be obtained from {!$Api.Enterprise_Server_URL_410} to make sure it is always corre...
Open Graph Description: Salesforce proxy url is looking at element[0] or element[1] of url split by dot in order to get domain. which is not always correct. I think domain should be obtained from {!$Api.Enterprise_Server_...
X Description: Salesforce proxy url is looking at element[0] or element[1] of url split by dot in order to get domain. which is not always correct. I think domain should be obtained from {!$Api.Enterprise_Server_...
Opengraph URL: https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit/issues/95
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"salesforce proxy url is not correct if the browser url is formed differently by sso","articleBody":"Salesforce proxy url is looking at element[0] or element[1] of url split by dot in order to get domain. which is not always correct. I think domain should be obtained from ` {!$Api.Enterprise_Server_URL_410} ` to make sure it is always correct and it need to be always passed. I think fixing comments will help users or we should use salesforcebase url\r\n\r\n```\r\n/**\r\n * Set a session token and the associated metadata in the client.\r\n * @param sessionId a salesforce.com session ID. In a Visualforce page,\r\n * use '{!$Api.sessionId}' to obtain a session ID.\r\n * @param [apiVersion=\"v29.0\"] Force.com API version\r\n * @param [instanceUrl] Omit this if running on Visualforce; otherwise \r\n * use the value from the OAuth token.\r\n */\r\n forcetk.Client.prototype.setSessionToken = function(sessionId, apiVersion, instanceUrl) {\r\n```\r\n","author":{"url":"https://github.com/sumeetbath","@type":"Person","name":"sumeetbath"},"datePublished":"2018-01-03T21:17:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/95/Force.com-JavaScript-REST-Toolkit/issues/95"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:af0d84a5-85bb-b527-c758-267142fc6e44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D61E:14AB50:9F5AFCF:CE71FEC:69763663 |
| html-safe-nonce | 0bde6f4d3573dbd83ab7f2d7712a29c663597cced5efaeb855336b2eef9d4c5f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjFFOjE0QUI1MDo5RjVBRkNGOkNFNzFGRUM6Njk3NjM2NjMiLCJ2aXNpdG9yX2lkIjoiNTAxMzYzMTE5MTcyMjg5OTA0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5eb985e5bf21658d71581622b0563abe64e4245adff96309ec91d0bb23c4fb54 |
| hovercard-subject-tag | issue:285811752 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developerforce/Force.com-JavaScript-REST-Toolkit/95/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/366471?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/366471?s=400&v=4 |
| og:image:alt | Salesforce proxy url is looking at element[0] or element[1] of url split by dot in order to get domain. which is not always correct. I think domain should be obtained from {!$Api.Enterprise_Server_... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sumeetbath |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developerforce/Force.com-JavaScript-REST-Toolkit git https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit.git |
| octolytics-dimension-user_id | 366471 |
| octolytics-dimension-user_login | developerforce |
| octolytics-dimension-repository_id | 1542897 |
| octolytics-dimension-repository_nwo | developerforce/Force.com-JavaScript-REST-Toolkit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1542897 |
| octolytics-dimension-repository_network_root_nwo | developerforce/Force.com-JavaScript-REST-Toolkit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width