Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BootTrait - Define a preference for absolute URLs in default:// #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

totten
Copy link
Member

@totten totten commented Jul 25, 2023

This patch (in combination with civicrm/civicrm-core#26861) allows cv to pick URLs based on their metadata

Compare:

## Link to "civicrm/admin", which is declared as is_public=0
$ cv ev 'return Civi::url("//civicrm/admin");'
"http://wpmaster.127.0.0.1.nip.io:8001/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin"

## Link to "civicrm/user", which is declared as is_public=1
$ cv ev 'return Civi::url("//civicrm/user");'
"http://wpmaster.127.0.0.1.nip.io:8001/civicrm/?civiwp=CiviCRM&q=civicrm%2Fuser"

@totten totten changed the title BootTrait - Define a preference for URL absolute URLs in default:// BootTrait - Define a preference for absolute URLs in default:// Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant