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

FEATURE Location - check website URLS for http/https #217

Closed
jsirish opened this issue Nov 19, 2019 · 1 comment
Closed

FEATURE Location - check website URLS for http/https #217

jsirish opened this issue Nov 19, 2019 · 1 comment

Comments

@jsirish
Copy link
Member

jsirish commented Nov 19, 2019

Is your feature request related to a problem? Please describe.
Currently, a website URL can be added to a Location, but the user must enter http:// or https:// for it to display/work correctly on the front end.

Describe the solution you'd like
A method to check website URLs and add missing http:// or https:// prefixes

From another project:

    /**
     * @param $url
     */
    public function updateWebsiteURL(&$url)
    {
        if ($url && !preg_match('/^(http|https):\/\//', $url)) {
            $url = 'http://' . $url;
        }
    }
@jsirish
Copy link
Member Author

jsirish commented Jan 22, 2020

closed via #215
closed via #216

@jsirish jsirish closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant