Skip to content

Commit 5351e1b

Browse files
authored
Merge pull request #646 from hhaccessibility/profile-route-changes
Profile route changes
2 parents f906a0c + ad59fc3 commit 5351e1b

12 files changed

Lines changed: 17 additions & 17 deletions

File tree

app/app/Http/Controllers/LocationSearchController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function __construct($params)
195195

196196
private static function getURLFromParameters($params)
197197
{
198-
$url = '/location-search?';
198+
$url = '/location/search?';
199199
$needs_ampersand = false;
200200
foreach ($params as $param_name => $param_value) {
201201
if ($needs_ampersand) {

app/public/js/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function updateCategoryLinksOffKeywords()
181181
var $this = $(this);
182182
var oldUrl = $this.attr('href');
183183
var location_category_id = getLocationCategoryIdFromURL(oldUrl);
184-
var newUrl = '/location-search?location_tag_id=' + location_category_id;
184+
var newUrl = '/location/search?location_tag_id=' + location_category_id;
185185
if ( keywords )
186186
{
187187
newUrl = newUrl + '&keywords=' + keywords;

app/public/js/profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function rotateImage()
153153
'data': {
154154
'_token': token
155155
},
156-
'url': '/profile-photo-rotate',
156+
'url': '/profile-photo/rotate',
157157
'success': function() {
158158
randomizePhotoURL().then(showRotateFeature);
159159
}

app/resources/views/pages/home.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</div>
6767
<div class="search">
6868
{{ csrf_field() }}
69-
<form role="search" action="/location-search">
69+
<form role="search" action="/location/search">
7070
<div class="address-row">
7171
<datalist id="location_search_options">
7272
@foreach ($location_search_options as $option)
@@ -104,7 +104,7 @@ class="form-control"
104104
@foreach ( $location_tags as $key => $value )
105105

106106
<div class="location-tag col-sm-4 col-xs-6">
107-
<a href="/location-search?location_tag_id={{ $value->id }}" title="{{ $value->description }}">
107+
<a href="/location/search?location_tag_id={{ $value->id }}" title="{{ $value->description }}">
108108
{{ $value->name }}
109109
</a>
110110
</div>

app/resources/views/pages/location_report/collapsed.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</a>
3636
@endif
3737
@foreach ( $location->tags()->orderBy('name')->get() as $location_tag )
38-
<a class="location-tag" title="{{ $location_tag->name }}" href="/location-search?location_tag_id={{ $location_tag->id }}">
38+
<a class="location-tag" title="{{ $location_tag->name }}" href="/location/search?location_tag_id={{ $location_tag->id }}">
3939
<span class="name">{{ $location_tag->name }}</span>
4040
<span class="icon {{ $location_tag->icon_selector }}"></span>
4141
</a>

app/resources/views/pages/location_report/map.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function centreLocation() {
5151
<div class="col-xs-7 text-right">
5252
<div class="location-tags">
5353
@foreach ( $location->tags()->orderBy('name')->get() as $location_tag )
54-
<a class="location-tag" title="{{ $location_tag->name }}" href="/location-search?location_tag_id={{ $location_tag->id }}">
54+
<a class="location-tag" title="{{ $location_tag->name }}" href="/location/search?location_tag_id={{ $location_tag->id }}">
5555
<span class="name">{{ $location_tag->name }}</span>
5656
<span class="icon {{ $location_tag->icon_selector }}"></span>
5757
</a>

app/resources/views/pages/location_report/ratings_only.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="col-xs-7 text-right">
1818
<div class="location-tags">
1919
@foreach ( $location->tags()->orderBy('name')->get() as $location_tag )
20-
<a class="location-tag" title="{{ $location_tag->name }}" href="/location-search?location_tag_id={{ $location_tag->id }}">
20+
<a class="location-tag" title="{{ $location_tag->name }}" href="/location/search?location_tag_id={{ $location_tag->id }}">
2121
<span class="name">{{ $location_tag->name }}</span>
2222
<span class="icon {{ $location_tag->icon_selector }}"></span>
2323
</a>

app/resources/views/pages/profile/profile.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="col-md-3 col-sm-4 col-xs-12">
1515
@if ($has_profile_photo)
1616
<div class="photo-display">
17-
<p class="remove-photo"><a href="/profile-photo-delete">Remove Photo</a></p>
17+
<p class="remove-photo"><a href="/profile-photo/delete">Remove Photo</a></p>
1818
<div id="profile-photo-rotate" onclick="rotateImage()"><i class="fa fa-repeat fa-4x"></i></div>
1919
<div class="photo-changer" onclick="selectImageFile()">
2020
<div class="uploaded-photo">

app/routes/location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
Route::get('location-search', 'LocationSearchController@search');
3+
Route::get('location/search', 'LocationSearchController@search');
44
Route::get('get-nearby-locations/{longitude}/{latitude}', 'LocationManagementController@getLocationsNear');
55
Route::get('delete-my-location/{location_id}', 'LocationManagementController@deleteMyLocation');
66
Route::get('location-modify/{location_id}', 'LocationManagementController@show');

app/routes/profile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
});
1111

1212
Route::get('profile-photo', 'ProfilePhotoController@photo');
13-
Route::post('profile-photo-rotate', 'ProfilePhotoController@rotate');
14-
Route::get('profile-photo-delete', 'ProfilePhotoController@delete');
13+
Route::post('profile-photo/rotate', 'ProfilePhotoController@rotate');
14+
Route::get('profile-photo/delete', 'ProfilePhotoController@delete');

0 commit comments

Comments
 (0)