BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.17k stars 754 forks source link

Browsersync echoes the wrong url in wordpress #1670

Open henrikholmlund opened 5 years ago

henrikholmlund commented 5 years ago

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

Affected platforms

Browsersync use-case

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(); };

tekord commented 5 years ago

I have this issue too on Laravel app. Spent about 2 hours to find out this is because of browsersync. My app requires full URLs.