Questions tagged [uri]

A "Uniform Resource Idendifier" identifies a resource on a network.

Filter by
Sorted by
Tagged with
0 votes
1 answer
631 views

View that link to content in other languages

I have a multilingual site where some content types are translated, and others will remain English only. I'd like to have lists of English content on other language sites. I've created a view that ...
1 vote
1 answer
832 views

Get image url with https instead of http

When I use file_create_url it return url with http instead of https. Code Snippet: $desimg = file_create_url($node->field_image->entity->getFileUri()); Due to which i m getting warning ...
1 vote
1 answer
459 views

Clean url for custom query parameters

I have a custom filter form in my site and the form submitted by the filters adds 2 Get variables to the url. However, the variables appear in the form of: http://example.com/newpage?param1=a%2Cb&...
0 votes
1 answer
850 views

Views Link Display Settings Is Not Accepting External URL

I want to add an external URL to the Views More Link Display Settings. It is also mentioned in the guide lines as well ("A Drupal path or external URL the more link will point to. Note that this will ...
1 vote
1 answer
1k views

Schema.org itemprop="url" inside anchor object (link)

I'm trying to use the preprocess function to change the default outpot of links <a href> to include Schema.org's itemprop="url" inside the anchor object, as well as adding a <span itemprop="...
0 votes
3 answers
596 views

Organic-Groups multisite architecture

I have a task to build a series of websites all related to the same core business. Initially, I was going to build each one as a separate website. Later however, I was told the sites have to be able ...
0 votes
1 answer
490 views

File_managed URI change not working

Is there a way i can make file_managed URI changes in the database? I the database i have a list of files and there is append a _1 or _2 to the URI file name.i wanted to clean these up and remove the ...
2 votes
1 answer
653 views

Clean URL leads to duplicate URL after migration to another hosting

I have enabled clean URLs on the site after various article has been published on the site. But when I migrate from Bluehost VPS to Bluehost Share hosting, the clean URLs is not accessible again. And ...
1 vote
1 answer
1k views

Redirect taxonomy term page links to a View page's exposed filter

I'm trying to make every taxonomy term page link direct to a pattern like this: /viewpage?[term:vocabulary][]=[[term:tid]] So, for example instead of material/bronze where bronze has term id 7, ...
0 votes
2 answers
846 views

Base path and user picture uploading

So I recently migrated my site between servers. I think this is causing some issue with the base path of Drupal, which in turn affects the image upload path when a user tries to upload an image to his/...
1 vote
4 answers
7k views

How can I get the image URL from a media entity in a node template?

Normally I am able to get an images URL by setting the display setting for that field to URL and then writing something similar to this in order to print the url {{ content.field_image.0['#markup'] }}...
1 vote
2 answers
2k views

How do I prevent delimiters in a URL from being URL encoded?

I need to know how to get a +-delimited string to be appended to the end of the URL path without the + character being URL encoded. Why: I'm trying to pass arguments to a View. I'm working on a ...
3 votes
2 answers
1k views

Views insert current page node id to image link url

I want to create a block view of some content's image field. I am trying to insert current page node id to paths of image links. Because linked page is a entity form and I try to prepopulate node id ...
0 votes
1 answer
442 views

Enable clean urls drupal 7.56 / nginx - check failed

I have an issue with the clean urls check. When I test there is an error in the Nginx log: 2017/10/06 09:49:01 [error] 468#468: *199 open() "/usr/share/nginx/html/drupal-7/admin/config/search/clean-...
0 votes
1 answer
1k views

Display custom URLs for individual tabs of quick tab

I need to display seperate URL(Deep linking) for individual tabs in a quick tab. I found a javascript fix in this link . The URL that is displayed has the quicktab name and tab number. It looks ...
0 votes
3 answers
389 views

How do I create a url for views that displays values using exposed filter?

I created a view block that displays in table where there is an exposed filter called category: Category | Data A 1 A 2 B 3 C 4 now I want to create multiple ...
0 votes
1 answer
3k views

How to set a session variable when a link is clicked?

I have created a search block. It outputs multiple results (names) as links. User can follow the link. How can I pass the user name into $_SESSION variable? I tried doing this, the result shows a page ...
1 vote
1 answer
1k views

Extracting UID information from a URL and sending email to this user

As a beginner, I would be grateful if this community could help me out to solve the following problem, by giving me some pointers. This is the scenario I would like to implement in Drupal (I guess I ...
0 votes
1 answer
986 views

How do I get link the files in libraries.yml with absolute url path

In my libraries.yml files the css files are linked with the relative url paths. Eg : /css/mycss.html So when in the page source the linked url shows as relative. How do I link those files with ...
0 votes
1 answer
722 views

External URL Redirect Breaking Image Links

I was recently hired to manage an existing Drupal 7 site (built with an Omega subtheme) and am doing my best to ramp up quickly. Unfortunately, I do have some fires to put out immediately and could ...
0 votes
0 answers
46 views

Why are external links not valid URLs?

I have a Drupal 10 intranet site on our school's internal network. I want to add a link to an intranet webpage on another server on the network. The url is similar to "https://10.100.99.9/...
1 vote
1 answer
1k views

Configure inline images upload path per content type

There is a core feature that lets you configure where to save inline images uploaded using CKEditor: Here you can specify the path where you want store inline images. But this is global ...
2 votes
1 answer
714 views

How to keep URL parameters on subsequent pages after a form is submitted?

I'm sending a referral form out to my email database and I've got it set up so that their email addresses get passed through and appended to the form URL like this: http://www.holbrooktravel.com/...
0 votes
1 answer
416 views

Sitemap still contains URLs of deleted pages

I've deleted some products from my commerce kickstart database by means of standard Drupal commerce kickstart tools. But it looks like something gone wrong. Because some deleted pages URLs are still ...
30 votes
4 answers
63k views

How do I get the node URL in a Twig template?

I am trying to get the node URL in a Twig template. {{ content.node_link }} returns the full link, but I only need the URL. How do I retrieve the node URL?
2 votes
1 answer
1k views

Creating multiple URL aliases for the same node with their own context

I want to solve the following problem with Drupal 7 solely using existing modules and without any extra code. I have a contenttype called 'News' I create a news item and assign a taxonomy term called ...
0 votes
1 answer
1k views

Help with $base URL path in settings.php

Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content) I want to remove the drupal folder from the URL ...
2 votes
1 answer
852 views

Imagecache_external: Thumbnails of external URLs aren't accessible

Modules: Imagecache External, Media, Remote Stream Wrapper Scenario: I created a content type, in which I want to collect Movie Actors. My aim is to add images of those actors which arent hosted on ...
1 vote
2 answers
3k views

How to implement date filters with operators like <= or >= in a JSON query string?

We use Drupal 7 and the Service (Version 3) module. First we created a view using a date with a "between operator" as a filter, which works fine. Then we added a service view as .json format inn which ...
0 votes
1 answer
2k views

Multiple URLs for same node

anyone know how to create a URL alias and not redirect the user? I have a node with its alias set to /sign-up, but I also want it accessible via /caregiver/sign-up. I created a URL alias, but it seems ...
1 vote
3 answers
596 views

How to make a page visible only to users with permission to use the administration theme?

I have created a basic page which I only want to be viewable by people who have access to the administration theme. I have given the page a path of admin/shipping-help but to my surprise the page is ...
2 votes
1 answer
1k views

URL rewrite of localisation with nginx

I'm having trouble with changing the url of a drupal localisation. All urls are clean, but contain a non-clean localisation part; ?q="language", e.g. ?q=de, ?q=fr. The site runs on nginx + mysql + ...
1 vote
1 answer
811 views

Home Page rel="canonical"

We created a home page as node/1850 which is specified in /admin/config/system/site-information. When I look at the generated code, I see: <link rel="canonical" href="/node/1850" /> This ...
0 votes
2 answers
1k views

Get page title form url

How can I get the page title by its URL, for example http://example.com/en/news-events, which is not for the current page?
3 votes
1 answer
6k views

How do I run a site from a sub-directory?

I want to serve my Drupal site which is installed on example.com/drupal from example.com. This particular site is an add-on site on my shared host, so the actual file structure is public_html/example....
1 vote
2 answers
509 views

Get web image url from real path

As part of some other functionality I am generating an image in temp folder and But unforunately I'm not able get the web url of image. $path = \Drupal::service('file_system')->realpath(...
1 vote
3 answers
2k views

How do I get a paginated view to display rel="next/previous" tags?

Using Drupal 7. I've got several views (most of which listing articles which have been posted) that paginate and I'd like to add; <link rel="prev" href="http://example.com/recent-articles?page=...
1 vote
2 answers
5k views

Get the uri/path value of an image in the field template

I have created a custom field template for an image - field--field_images.tpl.php with the following code: <?php $url = file_create_url($field_images['uri']); $url = parse_url($url); $imglink = $...
6 votes
3 answers
8k views

How do I create a Url object from the public file URI?

How can a Url object be created from a file URI? Using the URI for a public file as a parameter for Url::fromUri() gives this error. UnexpectedValueException: External URLs do not have internal ...
1 vote
2 answers
807 views

Change page URL structure based on node field value

I'm using Pathauto to produce nice URLs for my Drupal 7 site, and have run into the need to edit the URLs based on a node field value. Specifically, when the content is archived on my website, the ...
0 votes
2 answers
661 views

How to add destination parameter in hook url_inbound_alter

Hi I have used hook_url_inbound_alter to alter the URL. When I access user/%/order anonymously it should redirect ti user/login. I have used below code function module_url_inbound_alter(&$path, ...
1 vote
2 answers
670 views

How to read JSON data from external URL and display it in a node

I want to read json data from external url and display those data in a node. After that I would like to add filters in the result using views. I have created a view using external url(query settings) ...
0 votes
1 answer
455 views

Is there a function to get the system path for the current language?

If I'm using multiple languages on the site with path prefixing, is there a quick way to get a system path for the current language? For example, if the current language is English, and I'm ...
2 votes
2 answers
3k views

Generate one-time-use custom links for emails and interact with them to accomplish tasks

Is there a module that would auto-generate custom unique one-time-use URLs that timeout after a set time, and can be used to accomplish tasks and progress workflows in Drupal 7? Use Case 1 User ...
0 votes
3 answers
801 views

Problems while migrating drupal website from localhost to server

I am trying to migrate my Drupal website from localhost to server, but I am having some problems. I tried many guides from Google, but with no luck. What I did: First I did a fresh drupal ...
0 votes
1 answer
539 views

How to get group id from custom url

I have some more custom url with og group id like www.example.com/students/6593 www.example.com/results/6953 www.example.com/book-listing/5367/6953 here 6953 is a group id. these are the sample ...
1 vote
2 answers
801 views

How to hide /node/ , /taxonomy/, /mymodule/, etc., from the URL path

I have the module Path auto installed. I would like that the user could not access the content by the URL http://www.myexample.com/node/7 and instead would have to follow the menu and other webpage ...
5 votes
1 answer
112 views

Register an object with the Service Container and give it a setRequest() (get base url)

I'm looking for a way to get the hostname of a multisite, and I've found several answers about it. One of the solutions was to use: Answer link $host= \Drupal::request()->getHost();   or \...
1 vote
2 answers
2k views

Mod rewrite enabled and working, urls contain index.php/

I have a strange issue: I have a drupal 8 instance on a subfolder in /var/www, I have enabled mod-rewrite in apache, I changed the apache.config file as in this post and the clean urls are working if ...
1 vote
1 answer
555 views

why is index.php added to URLs?

Since I updated my site to Drupal 9.5.11, 'index.php/' is added to every URL: http://mysite.org/index.php/ for the home page, for example. On some page, I have a list with links to files and, because ...

1
2 3 4 5
23