Questions tagged [base-path]
37 questions
7
votes
1 answer
Angular 2+ - Dynamically change base path of app
Intro
I know this question has been asked in many different forms. But I have already read every post and article I could find on that matter and could not solve my problem with the prerequisites we face. Therefore I would like to describe our…

satanik
- 572
- 7
- 21
7
votes
2 answers
Getting the base path/URL
I am trying to get the base path of the documents through a function as I do not want to find the paths like ../folder1/folder2/mypage.php or ../../../folder1/folder2/somepage.php.
Therefore I tried...
function getBaseUrl() {
// output:…

Raja
- 772
- 1
- 15
- 38
6
votes
3 answers
Application folder name changes every time i run in simulator
Whenever I restart my application it's folder name in finder is changed from
09323D3F-D371-4556-ABA3-BD23AF487F12
to
E771BBEC-ACC6-489C-B7C1-B5FF11004CB2/
NSHomeDirectory() is changing everytime I run the app in simulator.

abh
- 1,189
- 2
- 14
- 30
3
votes
2 answers
Multiple API Gateways from different regions with the same Custom Name and different base path
I have 10 different APIs across two AWS regions (us-east-1, ca-central-1). Using base path mapping, us-east-1.example.com is serving 5 APIs in US and ca-central-1.example.com is serving the other 5 APIs (API Gateway). Although the backend is running…

dubucha
- 1,027
- 10
- 16
3
votes
3 answers
Laravel view.php use config::get variable in base_path
I am trying to do this in laravel 5.2 view.php (edit base_path to use a config variable in the string):

Bryce
- 988
- 9
- 16
3
votes
3 answers
Getting base directory in CakePHP
I am working on a CakePHP project. Here, I have to upload a file and then move that file to a specific folder. Uploading is working well, but I can't move it to the folder I want. Is there any function or something in CakePHP to move the uploaded…

user2387319
- 123
- 1
- 3
- 12
2
votes
1 answer
Wordpress migration, CCTM and basepath error
I migrated my site over and not get a problem
Warning: require_once(): open_basedir restriction in effect. File(/home/httpd/mytestserver.co.uk/mysite/httpdocs/wp-content/plugins/custom-content-type-manager/fields/text.php) is not within the allowed…

LeBlaireau
- 17,133
- 33
- 112
- 192
1
vote
1 answer
using NextAuth with my NextJS app I have error when I switch my app from the standard localhost root to a basePath
my next.config.js file
/** @type {import('next').NextConfig} */
const basePath = process.env.NEXT_PUBLIC_BASE_PATH;
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
basePath: `${basePath}`,
assetPrefix: `${basePath}/`,
…

Kartzallis
- 31
- 3
1
vote
0 answers
aws api gateway adding basePath using openApi 3.0.3
Hey I m using openapi version 3.0.3 to add restApi's in Aws gateway. The problem is I have to add a basePath for all my Api's.
The docs says "If the API doesn't contain any basePath variables, the Import API feature checks the server.url string to…

vignesh suresh
- 25
- 5
1
vote
2 answers
How to prevent CDK from creating default base path mapping for new DomainName
When you create a CustomDomain while creating a RestApi OR you .addDomainName after creating the RestApi in CDK, a default base path mapping is created for the specified stage to the root of the domain.
I don't want that to be created. I want to…

KickinMhl
- 1,218
- 3
- 14
- 32
1
vote
1 answer
Extra slash in redirect_uri
I have added a google authentication to my application in Startup.cs.
services.AddAuthentication()
.AddGoogle(googleOptions =>
{
googleOptions.ClientId = "xxx";
googleOptions.ClientSecret = "xxx";
});
Also i have an page…

Kiko
- 81
- 2
- 8
1
vote
0 answers
JS - Set Base-Path before loading other resources
Currently i have the following html-index-file:
I have to set the base-url by javascript (it depends on the url) i can't write it hardcoded to the index.html.
…

Flo
- 1,179
- 3
- 15
- 43
1
vote
1 answer
MODX Revo, Path Issue with friendly URLS (only in IE)
my MODX installation have serval contexts, each context go to an other domain. Friendly URLS is on.
Everything works fine in Mozilla, Chrome and Safari.
Now we find out that the site do not Work in IE (version 11).I discovered that firendly urls…

DragonStyle
- 145
- 11
1
vote
2 answers
html base tag not working correctly
I am using html base tag in head but not working very well.
This is my folder structure.
- BaseWebsite (Folder)
- - Root (Folder)
- - default.html
- - css (Folder)
- - js (Folder)
- - image (Folder)
in IIS, i create a new web site pointing to…

william
- 7,284
- 19
- 66
- 106
0
votes
1 answer
Changing URL of default image upload location in CodeIgniter
We are using the CodeIgniter framework and have an upload page. Our site is at http://www.mysite.com/directory1/ (which is the base_path) and by default the images are uploaded to the folder http://www.mysite.com/directory1/upload/thumb/ but we need…

JoeW
- 578
- 1
- 10
- 29