Automattic / Automattic/jetpack

Add support for running Jetpack from a symlinked folder

Open
#1,991 2 comments 0 reactions 0 assignees View on GitHub
Enhancement General Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

I thought it was about time I developed a fix for the staticize subdomain problem #1918 so I synced the latest version and created a Windows symlink to it
`C:\apache\htdocs\wporg\wp-content\plugins>mklink /J jetpack c:\github\jetpack`

It didn't look too promising.

![image](https://cloud.githubusercontent.com/assets/2474435/7219652/98aff594-e6a1-11e4-965e-0d6c821da790.png)

As you can see from the screen capture, there are a number of files with bad URLs
e.g.

```
http://qw/wporg/wp-content/plugins/C:/github/jetpack/css/jetpack-icons.min.css?ver=3.5
```

It would be nice if I could run Jetpack directly from a symlinked folder.

Workaround: Install it as a normal plugin.

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Reproduce the Jetpack installation from a Windows symlink and trace how the plugin builds static asset URLs, using the malformed C:/github/jetpack path as the starting case. Done means symlinked installations produce valid asset URLs while normal plugin installations continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.