Title: Respect the basepath for paste url · Issue #1658 · PrivateBin/PrivateBin · GitHub
Open Graph Title: Respect the basepath for paste url · Issue #1658 · PrivateBin/PrivateBin
X Title: Respect the basepath for paste url · Issue #1658 · PrivateBin/PrivateBin
Description: The problem Currently the basepath from conf.php is not respected when showing the paste-url. This is important though when you restrict the creator-ip's in the config to ensure that only e.g. a specific IP range can create new documents...
Open Graph Description: The problem Currently the basepath from conf.php is not respected when showing the paste-url. This is important though when you restrict the creator-ip's in the config to ensure that only e.g. a sp...
X Description: The problem Currently the basepath from conf.php is not respected when showing the paste-url. This is important though when you restrict the creator-ip's in the config to ensure that only e.g. ...
Opengraph URL: https://github.com/PrivateBin/PrivateBin/issues/1658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Respect the basepath for paste url","articleBody":"## The problem\n\nCurrently the basepath from conf.php is not respected when showing the paste-url. This is important though when you restrict the creator-ip's in the config to ensure that only e.g. a specific IP range can create new documents. Case:\n- My PrivateBin instance is exposed on https://privatebin.example.com\n- I configure the creator ip's in the conf.php to \"10.0.0/24\", so only I can create new documents when I'm doing it from the same network my PrivateBin is living in.\n- I create a new document using my PrivatBin's local IP, e.g. https://10.0.0.5\n- After I created it, I get a paste-url like \"https://10.0.0.5?2838ebfc4b69d3d0#4i9MLxPUen9MMjJk6BGNeo6dbBhJZRQhvzcMFFBPunxP\" but I need it to be \"https://**privatebin.example.com**?2838ebfc4b69d3d0#4i9MLxPUen9MMjJk6BGNeo6dbBhJZRQhvzcMFFBPunxP\".\n\n## The solution\nRespect the basepath from the config file for the display url that's shown after user created a new document.\n","author":{"url":"https://github.com/nepomuc","@type":"Person","name":"nepomuc"},"datePublished":"2025-09-30T12:16:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1658/PrivateBin/issues/1658"}
| 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:53d2098b-e453-d216-19bb-242f2169230c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF48:1373CB:84EA9A:B97080:6996FD01 |
| html-safe-nonce | aad40e8403f8baa3381ed6181fccb1d27d8d4b04165b8c2c2cf68e1e0fcec07b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjQ4OjEzNzNDQjo4NEVBOUE6Qjk3MDgwOjY5OTZGRDAxIiwidmlzaXRvcl9pZCI6Ijc2OTE2MDE1NDA1Mzc1ODA4MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 825cd243b246e2764c2084e49ae1ee183a56b52a702c82557beb98a522a71b98 |
| hovercard-subject-tag | issue:3469121189 |
| 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/PrivateBin/PrivateBin/1658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3da452bf6ad5f8340c711c46cd2d3ccd3576d6035b26b99f73347b8ba635311/PrivateBin/PrivateBin/issues/1658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3da452bf6ad5f8340c711c46cd2d3ccd3576d6035b26b99f73347b8ba635311/PrivateBin/PrivateBin/issues/1658 |
| og:image:alt | The problem Currently the basepath from conf.php is not respected when showing the paste-url. This is important though when you restrict the creator-ip's in the config to ensure that only e.g. a sp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nepomuc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/PrivateBin/PrivateBin git https://github.com/PrivateBin/PrivateBin.git |
| octolytics-dimension-user_id | 20367028 |
| octolytics-dimension-user_login | PrivateBin |
| octolytics-dimension-repository_id | 62937181 |
| octolytics-dimension-repository_nwo | PrivateBin/PrivateBin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62937181 |
| octolytics-dimension-repository_network_root_nwo | PrivateBin/PrivateBin |
| 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 | 488456433f77c2c19e6e9e2572a57e8590b70f39 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width