How to join components of a path when you are constructing a URL in Python

For example, I want to join a prefix path to resource paths like /js/foo.js. I want the resulting path to be relative to the root of the server. In the above example if the prefix was "media" I...

GitHub relative link in Markdown file

Is there a way to create a URL anchor, <a>, link from within a Markdown file, to another file within the same repository and branch (aka a link relative to the current branch)? For example, in the...

CSS background image bug in Chrome

I'm having a weird bug in Chrome, I'm applying the following CSS rule to an element: #element { background-color: #0E0F10; background-image: url(images/the_background.jpg); } Now the first...

htaccess to add directory after domain name?

How can I use htaccess to always ADD a directory immediately after the domain name? So for example, change requests...

Flight PHP Routing from Subdirectory

So I'm using the Flight PHP microframework (http://flightphp.com/) to do routing. My question is, how can I run the router from within a subdirectory? What I mean is, essentially, run it...

wkhtmltopdf relative paths in HTML with redirected in/out streams won't work

I am using wkhtmltopdf.exe (version 0.12.0 final) to generate pdf files from html files, I do this with .NET C# My problem is getting javascript, stylesheets and images to work by only specifying...

Setup Mount Point in icecast server

I am developing an app which requires to stream live audio from iOS device to an icecast server and simultaneously play that audio in other iOS devices who are listening to that recorded audio...

Does Phonegap support root relative path? What are the best practices?

I'm really baffled after reading PhoneGap on iOS with absolute path URLs for assets and have a couple of questions: Does Phonegap supports root relative path? For instance Ionic framework for...

Replace http with relative url // on any CSS, JS, HTML, PHP and TPL file on the document root server

from command line or PHP, no matter what. How to replace all the "http://example.com" strings with "//example.com" (relative protocol URL) on any CSS, JS, HTML, PHP and TPL file on a CentOS...

Class loading from /bin/content instead standalone/deployments

i run my war in jboss as 7.1.1. it uses jaxb/jersey. when i deploy the war i get this error: 14:32:55,162 ERROR...

Apple Web Clips (Apple Touch Icons) not working for site with HTTPS

I'm having difficulty getting the Apple Touch Icon to show up for the "Add Bookmark" feature in Safari when I have HTTPS enabled for the site. I can get it working with the "Add to Home" option,...

Forbidden location when using alias in nginx for relative urls

I am trying to set up roundcube / phpldapadmin / ... with Nginx on relative urls, e.g.: example.com/roundcube example.com/phpldapadmin The source are in the following...

Vue Cli Webpack background url path issue

Using vue cli. For some reason, SOME of my images, if I refer to them directly in the scss and don't bind them dynamically to my vue object have issues with relative paths. Say I have a vue...

WKWebView fails to load images and CSS using loadHTMLString(_, baseURL:)

Apple's recommendation: In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView. Thus, I have replaced my good old UIWebView with a shiny new WKWebView. But what...

Windows 10, MAMP virtual host setup doesn't work

I've went through all the posts I could find here, still couldn't get this to work: I Have a Windows 10 + MAMP. MAMP is set to folder C:/MAMP/htdocs as the root folder I un-commented the Virtual...

Angular CLI production build placing duplicates of all my fonts in the root of my dist directory. Can this be avoided?

In my Angular project, i have custom fonts stored in src/assets/fonts/* I reference these fonts in my styles.scss file like this: @font-face { font-family: 'museo_sans_package'; src:...

AirBnB knowledge repo: Deploying using a context route

This post has to do with deploying AirBnBs knowledge repo app. We are hosting our knowledge-repo on a sub-route of our server - for example https://aws.our-server-uri.com/knowledge-repo and I'm...

Securing assets on Microsoft Azure CDN (Verizon Premium) using token authentication

I am attempting to secure files in one folder on Verizon Premium CDN using token authentication. I have followed the docs here. I have successfully installed the PHP module that encrypts requests...

TYPO3 8 LTS how to generate frontend page URL in CLI/Scheduler context

I'm trying to figure out how to generate absolute frontend page URLs from CLI/Scheduler context. I've created the following helper class: class FrontendUrlProvider { /** * @var...

Babel 7 disable --isolatedModules Typescript flag?

How can I disable --isolatedModules flag in Babel 7, it causes everything to crash. It crashes on: 'use strict' const enums, which are used by CRA's own dependencies (chalk) also fail so im not...

How to have relative paths in eleventy?

I am currently working on a 11ty project and really like it. But I have a problem with the links when I deploy the output. I'd like to deploy it to 2 different locations on separate servers. One...

Using relative redirect in spring boot fails

Scenario I have an spring-boot application which is accessed using context instead domain root: domain root : http://app.com my app : http://app.com/organization_a (redirects me to my app...

Set starting route in a visual studio blazor project

I'm working on a server side 3.0.100 blazor project in VS2019. I have several pages. I would like it if while I was debugging i could start a non-default route/page for debugging purposes. What...

Create React App + Typescript In monorepo code sharing

I currently have a monorepo where I have two (+) packages using yarn workspaces: root /packages /common /web ... root/package.json ... "workspaces": { "packages": [ ...

TypeError: Cannot read property 'webpackJsonp' of undefined

I have a react app (app A), created about 2 years ago using create-react-app, and it's ejected. The app is exported as a commonjs2 module and shipped in an NPM package, to be used in a next.js...

Webpack mini-css-extract-plugin @font-face url resolution issue

I am facing difficulty understanding the nature of URLs/paths and how they are resolved while using the mini-css-extract-plugin, file-loader and configuring their options such as the context and...

Blazor Relative url

I have navlink defined as follows <NavLink href="/intro"></NavLink> In dev it works fine as the root of the site is at the same level as the blazor app. In prod I have to put the blazor site...

How to stop domain redirects when using a CloudFront domain as the custom origin at [email protected]?

I want to use different origins according to the relative paths of my website. My root domain is example.com and it should be served with example01.cloudfront.net and example.com/pathxx/ should be...

Use "Create React App" inside a WordPress plugin

I'd like to develop a plugin, where the admin frontend (e.g. wp-admin pages) is rendered with React. I'm using create-react-app for developing the app in a subfolder. For loading the React App...

ReferenceError: require is not defined using webpack5 and babel

I created an application using CRA, but updated it to be using webpack5, so I had to make some modifications into the webpack.config in order to support the changes on it. Now, I am able to put...