Questions tagged [uri]

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

310 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
269 views

Make variables outside of node available to pathauto

I'm trying to port a website over to Drupal 7. The structure consists of locations which have an entity reference to a region which has an entity reference to a country: location<-region<-...
Chris Leather's user avatar
4 votes
1 answer
111 views

Routing to production and testing Drupal installations on shared hosting account

I am having issues with routing users to different domains on a shared hosting account. Each of these domains are separate Drupal installations with separate databases. site is intended to be the ...
erik's user avatar
  • 119
3 votes
2 answers
368 views

Search API path make SEO friendly

I am using Search API. I make a view of all the indexed entities and uses Taxonomy term as Contextual Filter. But the path of view is not SEO friendly. The path is like http://www.example.com/en/Real%...
Pankaj Sachdeva's user avatar
3 votes
1 answer
156 views

Redirecting doesn't work with a custom form in a block

I developed a custom form with FAPI and added a block for it. Block is included only on one specific page (basic node). When user submits this form it should redirect user to external site (URL is a ...
user1271930's user avatar
3 votes
2 answers
997 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 ...
mtin -nong's user avatar
3 votes
2 answers
104 views

How can I create a "show full article" button that bypasses smart paging?

I am using smart paging currently but would like to create a button above my articles that would show the entire article on a single page (canonical link) that would also have no pagination (bypass ...
user13721's user avatar
3 votes
1 answer
323 views

Need to change the subdomain URL structure - D7

Need to change the subdomain URL structure from: sub1.example.com sub2.example.com To: www.example.com/sub1 www.example.com/sub2 Is there any module to do this in Drupal 7 If there is no other ...
Fero's user avatar
  • 1,547
2 votes
0 answers
687 views

Keep randomly getting /index.php/ in link Urls with Pantheon (nginx)

I have a live D8 pantheon site and keep randomly getting index.php in the menu link urls. It's now happened four or five times. We've set a base url for the sitemap, so it has prevented the sitemap ...
ProGrammar's user avatar
2 votes
0 answers
1k views

Prevent URL encoding of custom query parameters passed to FormState::setRedirectUrl()

Upon submission of a custom-coded form, I'm redirecting to a URL that includes query parameters. How can I prevent Drupal from URL-encoding those parameters? Example: $params = [ 'something' => ...
kamm's user avatar
  • 111
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 ...
rroose's user avatar
  • 360
2 votes
0 answers
430 views

node/123 is not redirecting to its alias

I have something going on in my site that I didn't notice until now. I am using the Domain Access module to create multiple sites within one Drupal instance, so I'm thinking that may have something to ...
Erich H.'s user avatar
  • 355
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/...
Sarah Lynch's user avatar
2 votes
0 answers
179 views

Relative URLs with S3FS module

So I found this answer on here on how to get relative URLs on my Drupal 7 site (How do I modify Drupal so that ONLY relative URLs are used through the whole site?), but it doesn't seem to work nicely ...
David C's user avatar
  • 221
2 votes
1 answer
70 views

How do I change the default front page?

How do I change the URL present under Home » Administration » Configuration » System in my Drupal site? I want to get rid of the stuff circled in red, but it only seems that I can add different pages ...
user avatar
2 votes
0 answers
53 views

Drupal images/links at the wrong URL(sometimes)

I have a Drupal website installed on cPanel. the site is at http://example.com Everything is working good, however at times, sometimes the images/links will be changed to a different URL then the ...
alex's user avatar
  • 21
2 votes
1 answer
651 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 ...
Wale's user avatar
  • 31
2 votes
0 answers
57 views

Sites module: get the unprefixed, global URL

Drupal beginner here. I'm working on a site which uses the Sites module to create location-specific URL's for all nodes. So say we have three locations: New York, London and Hong Kong. Plus Global of ...
ddunderfelt's user avatar
2 votes
1 answer
330 views

How to hide path location in drupal 7?

How to hide path file in drupal? Now it looks like this: http://localhost/drupal/sites/default/files/document.pdf I want to change to look something like this: http://localhost/drupal/media/view....
Edin Puzic's user avatar
2 votes
0 answers
327 views

Remove default language from front page url

I have a drupal 7 site which was originally set up in English. The home page url would display www.mysite.com and other languages with /es /de /it after the url. After changing the default language ...
Peter's user avatar
  • 23
2 votes
0 answers
319 views

How do I create custom URLs/paths?

I have been playing with the Services module for a couple of days. According to general REST API best practices, the GET URL paths I should use are: /buildings /buildings/4 /buildings/4/rooms /...
Chris87's user avatar
  • 21
2 votes
1 answer
44 views

Drupal theme IMG folder rewrite rule from vhosts conf file?

I am wondering if it is possible to create a rewrite rule in my vhosts config file for a site to remap the location of the images folder in the theme directory. The scenario is that I don't want to ...
Tom Gould's user avatar
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 + ...
mrn's user avatar
  • 21
2 votes
0 answers
421 views

What's the correct way to enable clean urls when the site is hosted in a sub directory?

Until recently, I've never used Drupal in a subfolder before, and having followed the directions in the .htaccess file as well as this page, I'm unable to get it working. Drupal projects will be ...
blue928's user avatar
  • 3,804
2 votes
0 answers
98 views

subpath url alias does not seem to fire 404

I'm using subpath_alias, so /node/4/video alias is available too. But now, and I'm not sure subpath_alias is involved, /node/4/foo does not fire 404 and instead it shows the page as if it was /node/4. ...
Thomas Parquier's user avatar
2 votes
0 answers
763 views

Contextual Filter from a select list (Key|value) - Use value rather than key

I have a Content type called Article, under which I have an article type field, which is a select list/dropdown field. The options of the field is as follows: 0Editorials|Editorial 2Feature|Feature ...
KaushikTD's user avatar
  • 179
2 votes
1 answer
262 views

URL redirect for changed url structure

I changed my Drupal 6 website tag structure and got a new URL however old URLs are indexed in Google and are generating 404 errors. My old URLs are www.mydomain.com/topics/12345/widget www.mydomain....
Deepblue's user avatar
2 votes
0 answers
1k views

Remove the language prefix from file URL

More specifically url's to files in the body text. So in my body text I have manually added <a href="/sites/default/files/some_file.pdf" />some file</a> to link to a file. I'm using the ...
Smos's user avatar
  • 647
2 votes
0 answers
104 views

How to alter paths, that are translated by i18n?

I am using language selection by language domain in Drupal 7. That has the side effect, that all internal Drupal paths being created as absolute paths by the i18n module. To get sub-domains working ...
user5950's user avatar
  • 2,018
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 ...
K-G's user avatar
  • 21
2 votes
1 answer
267 views

Adding text to a field before save (Drupal 7)

I run into a situation where I need to wrap text inputted into a field before it is saved. I'm not sure the best way to do this, seems pretty straightforward but I'd like to find the "recommended way",...
moonman's user avatar
  • 21
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 ...
mobcdi's user avatar
  • 21
2 votes
2 answers
129 views

How do I find a node knowing its URL?

I need to rename the node home-care/vids into home-care/product-solutions. The trouble is that I can't find home-care/vids in the dashboard of this relatively big site. How can I find it? I have ...
porton's user avatar
  • 393
2 votes
0 answers
260 views

Book module, taxonomies, url path settings, and breadcrumbs

I am a recent convert to Drupal from Joomla, and while I'm starting to get the hang of it, I just ran into a question that I need some expert advice on. I'd like to have online versions of a print ...
NumerousHats's user avatar
2 votes
1 answer
138 views

Filter is Stripping URL with custom scheme

There are times we are using custom schemes for URLs and storing them in Drupal 6. The href attribute values are getting stored in the db properly. So, <a href="mycustomscheme://foo/bar"> ...
Aaron's user avatar
  • 347
2 votes
0 answers
358 views

How do I set up the active primary menu based on taxonomy?

I have set up a blog using a custom Article content type and a page View with a row style of fields. I have set up taxonomy terms to label my Article content types as I make them. In my View I have ...
arne's user avatar
  • 73
2 votes
1 answer
2k views

Query URL containing term name instead of term ID on Views Exposed Filters

I've got a View with an Exposed Filter that shows Taxonomy Terms that are used to filter the content that's going to be displayed as the result. It's a View that shows recipes based on the filters ...
greenlight's user avatar
2 votes
3 answers
346 views

Views: List of recent months containing nodes

Using Drupal 7, views 7.x-3.0-beta3. I am trying to make a display containing a list of links which direct users to an archive page containing posts of that month (eg. all news messages posted in ...
Stijn's user avatar
  • 21
2 votes
1 answer
65 views

How can I have a node with the URL /themes

I've created a node and have given it the URL /themes. In full: http://site-name.com/themes. Permissions on the Drupal system folder 'themes' mean that the URL /themes gives: 403 forbidden. Is there ...
Andrew Edwards's user avatar
1 vote
0 answers
24 views

How do I prevent the language code being stripped from the URL pathway?

Problem When trying to link to example.org/fr/node/1, links directs to example.org/node/1. Same problem when using direct pathways instead of node links. Trying to link to example.org/fr/a-propos/...
Harvey Johnson's user avatar
1 vote
0 answers
13 views

How to send webform's full URL to Salesforce

We are creating Leads in Salesforce from Webforms submissions and now we want to include the full URL in a Salesforce field. I have tried Submission URI field but it does not include the host nor the ...
Khin's user avatar
  • 11
1 vote
0 answers
35 views

Filter GeoJSON feed on a value in the path

I have GeoJSON feed, created with a view in Drupal 7, that I want to filter on a path value in the url of the loaded page (/path/%). The feed is loaded as an Openlayers map on a page. The feed seem to ...
frank.schram's user avatar
1 vote
1 answer
817 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 ...
Sudha's user avatar
  • 33
1 vote
1 answer
808 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 ...
Greg Sims's user avatar
  • 573
1 vote
1 answer
74 views

Pass id from URL to next page

I have made a product page overview that displays all the products of my webshop. On the left, I have placed a filter where people can filter the products (e.g. country can be France, Germany...). ...
WhiteCollar's user avatar
1 vote
0 answers
488 views

Front page identification and page--front template not working

After install URL Redirect module not able to check the current page is front page or not by programmatically. Following code does not return anything: \Drupal::service('path.matcher')->isFrontPage() ...
Cool's user avatar
  • 1,832
1 vote
1 answer
109 views

Multilingual pages links showing node instead of URL alias

My web has 2 languages, English and Malay. The language selection is by session of ?lang=en or ?lang=ms. English is the default language and it is working fine. All internal links are using the ...
David Yap's user avatar
1 vote
2 answers
506 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(...
Cool's user avatar
  • 1,832
1 vote
0 answers
1k views

facebook change default og:url and canonical URL with metatags module

I moved my site from HTTP to HTTPS, now a few days later my facebook likes are waaay lower. For example one article under HTTP was 25K likes now under HTTPS it is 3K likes. I am face with the facebook ...
mamesaye's user avatar
  • 261
1 vote
1 answer
78 views

Query in URL not affecting view filters

I currently have a view that has a page display and a block display. The page is disabled, but I have exposed the form in a block, which is then displayed on the homepage of the site. When the user ...
mistrytheory's user avatar
1 vote
0 answers
32 views

Pathauto URL allowing unauthorised user to view

I have a content type that only authorised users are able to view i.e. mysite.net/node/66 (Access denied message for non authorised users) but when I view the same content using an alias of node/66 i....
hobbsie's user avatar
  • 53

1
2 3 4 5
7