Skip to content

Browsersync echoes the wrong url in wordpress #1670

Open
@henrikholmlund

Description

@henrikholmlund

Issue details

Please provide issue details here.

I'm using 2.26.3 in wordpress project, and I get getting the wrong url when I echo out the get_template_directory_uri().
The expected output from get_template_directory_uri() would be http://localhost:3000/breakstuff/wp-content/themes/gulpwpstarter
But instead I get //localhost:3000/breakstuff/wp-content/themes/gulpwpstarter

Steps to reproduce/test case

Please provide necessary steps for reproduction of this issue, or better the
reduced test case (without any external dependencies)
.

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.26.3 ]
  • Node [ 8.12.0 ]
  • Npm [ 6.4.1 ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

const server = browserSync.create();
export const serve = done => {
server.init({
proxy: 'http://localhost:8888/breakstuff/',
});
done();
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions